[Freeswitch-users] SIP trunk without authentication

Mathieu Rene mrene_lists at avgs.ca
Wed Nov 11 14:41:22 PST 2009


$1 gives you the content of the first regex capture group, so the  
first ( ) group.

^9(\d{7,})$ would put it in $1

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene at avgs.ca




On 11-Nov-09, at 2:33 PM, Sergey Kobzar wrote:

> Mathieu, thanks for the help. I got external oubound calls working.
> The things are simpler then I expected.
>
> This is my configuration:
>
>  <extension name="domestic.test">
>    <condition field="${toll_allow}" expression="domestic"/>
>    <condition field="destination_number" expression="^(\d{7,})$">
>      <action application="set" data="effective_caller_id_number=$ 
> {outbound_caller_id_number}"/>
>      <action application="set" data="effective_caller_id_name=$ 
> {outbound_caller_id_name}"/>
>      <action application="bridge" data="sofia/external/$1 at sip.trunk.gradwell.com 
> "/>
>    </condition>
>  </extension>
>
> I still have 2 questions:
>
> 1. Users must type '9' at the beginning, which means this is external
>   call and it must go out through VoIP provider. My config:
>    <condition field="destination_number" expression="^(9\d{7,})$">
>      ...
>      <action application="bridge" data="sofia/external/$1 at sip.trunk.gradwell.com 
> "/>
>
>   But I see that 9 still exists.
>
>
> 2. Ideally each internal number must have external one. In other words
>   ${outbound_caller_id_number} must be mapped to int. number. Where
>   can I do this?
>
>
> P.S. I try to move from Asterisk + Cisco CME to FreeSWITCH and use FS
> default configuration for testing.
>
>
>
> Tuesday, November 10, 2009, 11:43:04 PM, Mathieu wrote:
>
>> As easy as:
>> <action application="bridge" data="sofia/external/$
>> {destination_number}@ip_address_here" />
>
>> in your dialplan. If you want to make a gateway out of it, you can
>> enter whatever you want in username and password since they won't be
>> used. (SIP works using challenge authentication which means the  
>> remote
>> UA has to send you a packet requesting the credentials).
>
>> Mathieu Rene
>> Avant-Garde Solutions Inc
>> Office: + 1 (514) 664-1044 x100
>> Cell: +1 (514) 664-1044 x200
>> mrene at avgs.ca
>
>
>
>
>> On 10-Nov-09, at 1:27 PM, Sergey Kobzar wrote:
>
>>> Hello.
>>>
>>> I'm FS newbie and want connect it to SIP provider which does not
>>> require authentication - it make authentication using my IP.
>>>
>>> I've searched through FS documentation and didn't find clear answer.
>>>
>>> Could you help me or maybe give a link to a doc which can help?
>>>
>>> Thanks.
>>>
>>>
>>> -- 
>>> Sergey
>>>
>>>
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>
>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
>
>
> -- 
> Sergey
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org





More information about the FreeSWITCH-users mailing list