Jason:
I fully understand how the regex works in the dialplan. If you look closely in my original email and check out the pastebin. You will see that sofia does not pass the "sip:" to dialplan. I can do any combination of letters that dials from my softphone, and it will pass them to the dialplan. but if I put "sip:" in the front of my dial string. The "sip:" gets trunkated by sofia module so does the "@xx.xx.xx.xx" gets trunkated before it reaches dialplan to for regex matching. Therefore I say you can never reach the example sip uri extension because sofia will trunkate "sip:" .
Here is the excert from pastebin:
3. INVITE sip:1009@4.2.2.2 SIP/2.0
(line 3 , the freeswitch has successfuly received my dialying to sip: 1009@4.2.2.2)
Henry Huang <red.rain.seven@gmail.com> wrote:It is entirely possible to reach this extension, but notice that the "sip:"
> It that case, the example of dialing sip_uri in the dialplan/default.xml
> should be removed to prevent confusion. Because according to what you said,
> one can never be able to hit this extension:
prefix is removed before the rest of the URI is used in calling the bridge
application.
If you don't understand why this dial-plan entry works, go back and read about
regular expressions and the format of destinations used with the bridge
application. There are examples and explanations on the wiki.
_______________________________________________
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