i woke up this mornning and tried to change the destination set on the dispatcher DB table.
it was "sip:user@host"... i changed it to "sip:host" and used ds_select_domain.
worked great, the R-URI host changed as needed.
regarding the t_relay(host,port) option. the problem with that is that the t_relay does not accept $avp()....
any ideas?
On Wed, Dec 7, 2011 at 12:09 AM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,
On 12/6/11 7:08 PM, Uri Shacked wrote:
Hi,
i am using the dispatcher module in order to send the call to a LNP server.
after the 3xx reply from the LNP server, i would like to send the invite back to the proxy that initiate the call from the beginnig.
how do i do that?
one option: t_relay_to(...) with the parameter pointing to the proxy where you want to send the request.
it seems that kamailio dispatcher sets the host domain in the Internet Protocol, and the sip request line does not change
No, the dispatcher does not work at IP packet layer, it is updating the request URI with ds_select_domain() or sets internal outbound proxy address with ds_select_dst().
so to be short.. two questions:
1. how do i "undo" the dispatcher?
2. how do i make the dispatcher change the requst lineas well? (i am using ds_select_dst or ds_select_domain and they do the same...)
Changing the request URI is via ds_select_domain(), I can bet it is working fine as I use it in many places -- if it does not do it for you, can you paste here the config file used for doing dispatching along with the SIP trace (ngrep) of such call?
Cheers, Daniel
the carrierroute module, do it better, but i need the dispatcher for the "keep alive" usage.