[SR-Users] unset host domain in dispatcher module

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 9 08:29:04 CET 2011


Hello,

On 12/7/11 9:37 AM, Uri Shacked wrote:
> Daniel hi,
> thanks for the reply.
> i woke up this mornning and tried to change the destination set on the 
> dispatcher DB table.
> it was "sip:user at 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?

you can do:

$du = $var(dst);
t_relay();

In $var(dst) you must have a valid sip URI address (can include 
protocol, like: sip:127.0.0.1:5060;transport=tcp)

Cheers,
Daniel

>
> On Wed, Dec 7, 2011 at 12:09 AM, Daniel-Constantin Mierla 
> <miconda at gmail.com <mailto:miconda at 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.
>>     ideas will be great :-)
>>     Uri
>>
>>
>>     _______________________________________________
>>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>     sr-users at lists.sip-router.org  <mailto:sr-users at lists.sip-router.org>
>>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>     -- 
>     Daniel-Constantin Mierla --http://www.asipto.com  <http://www.asipto.com/>
>     http://linkedin.com/in/miconda  -- http://twitter.com/miconda
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111209/4a4715ab/attachment-0001.htm>


More information about the sr-users mailing list