I feel Michael's idea should also work: If call is from X.X.X.X, then bridge the call with the same destination_number ($1) to sipxecs gateway. <extension name="from_provider"> <condition field="network_addr" expression="X.X.X.X"/> <condition field="destination_number" expression="^(.*)$"> <action application="bridge" data="sofia/gateway/sipxecs/$1"/> </condition> </extension> On Wed, Aug 25, 2010 at 4:33 PM, David Ponzone <david.ponzone@ipeva.fr> wrote:It is right. You just transfer to another dialplan (context) in order to make it more readable. You'll be able to add all your rules in the provider context, because only calls coming from provider X.X.X.X will go into this dialplan. Remember: extension name has absolutely NO importance in FS. It's just a label. So to sum it all: if call from X.X.X.X, transfer to context provider, with the same destination_number ($1). In context provider, if destination_number is XXX, then bridge the call to sipxecs. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
This email has been scanned and certified safe by SpammerTrap®.
For Information please see
http://www.secnap.com/products/spammertrap/