how do I get more out of destination_number?
I have two E1 PRI lines connected to FS (via Sangoma A102). When I dial the numbers, FS does not pick up the full phone number in the destination_number: for one of the lines, the last 8 digits come through, and for another line (a toll free number) only the first three digits (800). How do I get the full called number? Thanks, Neil
you should get all the numbers sent on the actual line. This may not be all the numbers you expect, but some truncated number based on settings on the carriers switch. On Jun 22, 2010, at 2:15 AM, Neil Patel wrote:
I have two E1 PRI lines connected to FS (via Sangoma A102). When I dial the numbers, FS does not pick up the full phone number in the destination_number: for one of the lines, the last 8 digits come through, and for another line (a toll free number) only the first three digits (800). How do I get the full called number?
This sounds like a regex issue or a carrier issue. I would recommend that you route all incoming calls to the info app in public.xml and make a few test calls. Watch the console and see if any fields contain the full dialed number. In public.xml just create a new extension with a simple condition that grabs everything: field="destination_number" expression="^(.*)$" Then a simple action application="info" and that's it. Make a call and watch the console. The call will disconnect immediately unless you put something after the info app. If you are having trouble deciphering the info output then drop it in pastebin and we will take a look. -MC Sent from my iPhone On Jun 21, 2010, at 11:15 PM, Neil Patel <neilp@cs.stanford.edu> wrote:
I have two E1 PRI lines connected to FS (via Sangoma A102). When I dial the numbers, FS does not pick up the full phone number in the destination_number: for one of the lines, the last 8 digits come through, and for another line (a toll free number) only the first three digits (800). How do I get the full called number?
Thanks, Neil _______________________________________________ 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
I still for the life of me don't get how you type this long emails on that iPhone... is that painful? /b On Jun 22, 2010, at 1:39 AM, Michael S Collins wrote:
This sounds like a regex issue or a carrier issue. I would recommend that you route all incoming calls to the info app in public.xml and make a few test calls. Watch the console and see if any fields contain the full dialed number.
In public.xml just create a new extension with a simple condition that grabs everything:
field="destination_number" expression="^(.*)$"
Then a simple action application="info" and that's it. Make a call and watch the console. The call will disconnect immediately unless you put something after the info app. If you are having trouble deciphering the info output then drop it in pastebin and we will take a look.
-MC
Sent from my iPhone
I was laying in bed with my kid waiting for her to fall asleep. Yes it was painful but less so than laying there bored out of my mind. :) -MC (am now laying in my bed trying to get motivated to get up...) Sent from my iPhone On Jun 22, 2010, at 5:17 AM, Brian West <brian@freeswitch.org> wrote:
I still for the life of me don't get how you type this long emails on that iPhone... is that painful?
/b
On Jun 22, 2010, at 1:39 AM, Michael S Collins wrote:
This sounds like a regex issue or a carrier issue. I would recommend that you route all incoming calls to the info app in public.xml and make a few test calls. Watch the console and see if any fields contain the full dialed number.
In public.xml just create a new extension with a simple condition that grabs everything:
field="destination_number" expression="^(.*)$"
Then a simple action application="info" and that's it. Make a call and watch the console. The call will disconnect immediately unless you put something after the info app. If you are having trouble deciphering the info output then drop it in pastebin and we will take a look.
-MC
Sent from my iPhone
_______________________________________________ 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
participants (4)
-
Brian West
-
Michael Jerris
-
Michael S Collins
-
Neil Patel