[OpenSIPS-Users] dynamic routing -prefixing on inbound
Julien Chavanton
jc at atlastelecom.com
Tue Jul 21 17:44:12 CEST 2009
Do you have a suggestion on how to do this more dynamicaly ?
________________________________
From: Brett Nemeroff [mailto:brett at nemeroff.com]
Sent: Tue 21/07/2009 3:12 PM
To: Julien Chavanton
Cc: Bogdan-Andrei Iancu; users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] dynamic routing -prefixing on inbound
Once again.. another good use for the dialplan module. :)
You really don't want to do this with a static subst I don't think..
-Brett
On Tue, Jul 21, 2009 at 8:30 AM, Julien Chavanton <jc at atlastelecom.com> wrote:
Thank you, we will move to 1.6.0 later.
We have partner not sending tech prefix, we need to add it ourselves, I found this fix, but I wanted to be able to do everything from OpenSip control panel to keep things manageable.
do_routing("0");
# happend prefix to keep track of originating trunk/gateway (1.1.1.1==1111#)
if ( search("From:.*<sip:.*@1.1.1.1 <http://1.1.1.1/> >") ) {
xlog("L_NOTICE", "*****************call from[1.1.1.1]*****************\n");
subst_uri('/^sip:([0-9]+)@(.*)$/sip:1111#\1@\2;/i');
};
________________________________
From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
Sent: Tue 21/07/2009 11:06 AM
To: Julien Chavanton
Cc: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] dynamic routing -prefixing on inbound
Hi Julien,
Yes it is, but only in 1.6.0 (current devel version) . See the
is_from_gw() function:
http://www.opensips.org/html/docs/modules/1.6.x/drouting.html#id272676
The 1.5 version has no support for prefixing, but only for stripping:
http://www.opensips.org/html/docs/modules/1.5.x/drouting.html#id272676
Regards,
Bogdan
Julien Chavanton wrote:
>
> I found this in the README of the source code :
>
> * bidirectional behavior - inbound and outbound processing
> (strip and prefixing when sending and receiving from a
> destination/GW)
>
> I would like to happend a prefix when a call comes in from a certain
> gateway, I found that "PRI PREFIX" is currently applied on when call
> it outbound to the gateway but not when a call comes from a gateway.
>
> Is it already doable ?
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090721/b7833fc6/attachment-0001.htm
More information about the Users
mailing list