I found out what I was doing wrong. I was using forward(); instead of t_reply(); Since forward(); is stateless is was killing the dialog.
Thank you, John Komara From: Johnathan Komara <[email protected]<mailto:[email protected]>> Reply-To: OpenSIPS users mailling list <[email protected]<mailto:[email protected]>> Date: Thursday, August 28, 2014 at 9:50 AM To: OpenSIPS users mailling list <[email protected]<mailto:[email protected]>> Subject: Re: [OpenSIPS-Users] Replace IP in To Field I am able to accomplish this through the use of the textops module though it is nowhere near as clean as what it appears the uac module would do. >From everything that I have read the "To:" field is the IP of the logical >recipient. The Record-Route and Via headers are used to get the traffic to >where it needs to go, correct? If I am sending a message through this path: SwitchA -> ProxyA -> ProxyB -> SwitchB Does the "To:" field have to contain the IP address of ProxyB? Before I was able to modify the header with substr it contained the IP address of ProxyA (my side). Thank you, John Komara From: Johnathan Komara <[email protected]<mailto:[email protected]>> Reply-To: OpenSIPS users mailling list <[email protected]<mailto:[email protected]>> Date: Wednesday, August 27, 2014 at 6:08 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [OpenSIPS-Users] Replace IP in To Field I need to replace the IP in the To field. It is a requirement for a customer. I am trying to do this with uac_replace_to. It replaces the To field in the INVITE. However it does not replace it ACK to the 200OK. Looking at the logs I see that a dialog is created for the INVITE. Immediately after the INVITE is sent the dialog is destroyed. I am assuming that this is why the To field is not being modified in the ACK. It looks as though the dialog is never stored. I have tried to do this in memory and in mysql. I am never able to retrieve a dialog with the "opensipsctl fifo dlg_list" command. I have attached links to my debug logs and config. Is there a better way to accomplish this than what I am trying to do? Debug Logs: http://pastebin.com/mvKx5AQp Config: http://pastebin.com/n9vwncpU Thank you, John
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
