Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Routing problem


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
pabx_freeswitch at tel...
Guest





PostPosted: Sat Oct 04, 2008 9:09 am    Post subject: [Freeswitch-users] Routing problem Reply with quote

I'm using http://www.voxbone.com for incoming virtual PSTN calls to
voxbone@oegema.com
oegema.com is my (dyndns)domain and
voxbone is the extension in my domain (my FS server)

Based on the callerid number to route incoming PSTN calls, I've been using
following in Asterisk:

[default]
exten => voxbone,1,Goto(incoming,s,1)

[incoming]
exten => s,1,NoOP(Time=${STRFTIME(${EPOCH},,%H)}.${STRFTIME(${EPOCH},,%M)})
exten => s,n,GotoIf($[${CALLERID(num)}=32476378xxx]?default,2004,1)
exten => s,n,GotoIf($[${CALLERID(num)}=32486632xxx]?default,2005,1)
exten => s,n,GotoIf($[${CALLERID(num)}=0476378xxx]?default,2000,1)
.....
.....
exten => s,n,Goto(default,1000,1)

So far so good.

=======================================================================================

Now I want to do the same in FS.

If I don't have an extension "voxbone" and only use the following two
extensios:

<extension name="Henk GSM">
<condition field="caller_id_number" expression="32476378xxx">
<action application="bridge"
data="sofia/internal/2004%$${domain}"/>
</condition>
</extension>

<extension name="Tobie GSM">
<condition field="caller_id_number" expression="^32486632xxx$">
<action application="bridge" data="sofia/internal/2005%$${domain}"/>
</condition>
</extension>

then calls from 32476378xxx and from 32486632xxx are bridged correctly.
All other PSTN numbers are not routed anywhere. Which is correct.(because
"voxbone" don't exist)



However, when I add extension "voxbone"

<extension name="voxbone">
<condition field="destination_number" expression="^voxbone$">
<action application="bridge" data="sofia/internal/2000%$${domain}"/>
<action application="hangup"/>
</condition>
</extension>

then ALL calls are routed to 2000.(voxbone@oegema.com exist)
So the extensions <extension name="Henk GSM"> and <extension name="Tobie
GSM">
are ignored.


It is however not possible to put multiple condition fields for
"caller_id_number" inside the "voxbone" extension
<condition field="caller_id_number" expression="32476378xxx"> and
<condition field="caller_id_number" expression="^32486632xxx$">
(like in Asterisk [incoming] exten =>s, )

See also discussion thread: http://www.nabble.com/GotoIf-td19793170.html

So I can't route my calls based on caller-id anymore.

So I'm still faced with the problem how to a route calls based on caller-id,
and if the called-id doesn't match, the calls should be routed to extension
"voxbone".

My apologies if the story is too long, but I didn't find another wy to
explain.

Henk






--
View this message in context: http://www.nabble.com/Routing-problem-tp19812334p19812334.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services