[Users] Forward to the "To" field

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Jan 4 12:32:38 CET 2007


Hi Klaus,

right, TO uri must not be used for routing, but RURI.

a simpler solution to look at TO uri is to_uri :
     if (to_uri=~"sip:......") {
     }

regards,
bogdan

Klaus Darilion wrote:

> Hi!
>
> 1. SIP uses the request URI to route messages.
>
> 2. Thus, If you really need routing based on To header, just copy the 
> to URI into the request URI: avp_pushto("$ru","$tu");
>
> regards
> klaus
>
>
> Thomas Deillon wrote:
>
>> Hi all,
>>
>>  
>>
>> Merry Xmas !
>>
>> I'm just a small question if some people are still working :-)
>>
>>  
>>
>> I try to make a load balancing solution with SER and Asterisk.
>>
>>  I use the dispatcher module and I set on asterisks servers the default
>> gw as SER.
>>
>>  
>>
>> All requests go through the SER to the asterisks and on the SER I'm have
>> a line like
>>
>> If source-ip = Asterisk source IP do ...
>>
>>  
>>
>> And I want to do something like forward to the TO FIELD ...
>>
>> Do you know how can I do this ?
>>
>>  
>>
>> Thanks a lot for your help,
>>
>>  
>>
>> Thomas
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
>





More information about the sr-users mailing list