[Freeswitch-users] can't pass full sip url to dialplan

Henry Huang b_ball_henry at hotmail.com
Fri Aug 21 23:40:40 PDT 2009


I try to dial sip url from my softphone but seems like the sip address is
being processed by sofia before it pass to the dialplan. The example here is

*X-lite(softphone) dials -> 1009 at (it's fake sip address, the purpose
was just to test what's being passed to dialplan)
sofia receives the invite and return with trying
sofia pass the destination number to dailplan with "1009" (without the
"sip:" in front and without the "@" after it)
Please see pastebin for full log. http://pastebin.freeswitch.org/10089
ignore anything after line 80, because it's not my point, and the
destination is a fake address.

I would like to know how do you actually pass a full sip url to the dialplan
to do the regex match. Because from the default.xml dialplan, it comes with
an example sip url dialing extension that match's *^sip:(.*)$ *. So I assume
there must be a way of passing full sip url to the dialplan. Here is the
example dialplan expecting sofia to pass it a full sip url:

 <!-- dial via SIP uri -->
    <extension name="sip_uri">
      <condition field="destination_number" expression="^sip:(.*)$">
        <action application="bridge" data="sofia/${use_profile}/$1"/>


Henry Huang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090822/7388f2f8/attachment-0002.html 

More information about the FreeSWITCH-users mailing list