<div dir="ltr">Hello,<div><br></div><div>I am trying to use Dialog Module in my project, to relate the Invite and BYE transactions. I am saving the Source Port received in the INVITE transaction and want to route the Bye Transaction back to the source port.</div><div>Call Flow:</div><div>Invite: save Source Port 5062</div><div>Caller(5062) --> open sip(5060) ---> Server</div><div><br></div><div>Bye</div><div>Caller(5062)<---(Error)-----OpenSip(5060)<------Server</div><div><br></div><div><br></div><div>Script:</div><div><br></div><div>loadmodule "/usr/local/lib64/opensips/modules/dialog.so"<br>modparam("dialog", "profiles_with_value", "caller")<br></div><div><br></div>if (is_method("INVITE")) {<div>create_dialog();<br>store_dlg_value("Source_port","$sp");</div><div>}</div><div><br></div><div>if (is_method("BYE")) {<br></div><div>fetch_dlg_value("Source_port","$var(SP)");</div><div>$rp = $var(SP); <br></div><div>}</div><div><br></div><div><br></div><div>When fetching the Source_port dialog value it returns NULL in Bye Transaction?</div><div><br></div><div>Can you please suggest how to retain the source port in Bye transaction?</div><div><br></div><div>Thanks in advance.</div><div>Regards,</div><div>Rajat Ahuja</div></div>