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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users





_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to