Re: [Freeswitch-users] SIP trunk without authentication

2009-11-11 Thread Sergey Kobzar
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

Re: [Freeswitch-users] SIP trunk without authentication

2009-11-11 Thread Mathieu Rene
$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 mr...@avgs.ca On 11-Nov-09, at 2:33 PM, Sergey Kobzar wrote: Mathieu,

Re: [Freeswitch-users] SIP trunk without authentication

2009-11-11 Thread Russell.Mosemann
condition field=destination_number expression=^(9\d{7,})$ ... But I see that 9 still exists. condition field=destination_number expression=^9(\d{7,})$ Put the parentheses around the portion you want to capture. http://wiki.freeswitch.org/wiki/Regular_Expression -- Russell

Re: [Freeswitch-users] SIP trunk without authentication

2009-11-11 Thread Sergey Kobzar
Ah, right. I was inattentive :) What about my 2nd question? Each user must have unique outbound number which is mapped to his internal number. How can I set ${outbound_caller_id_number} depending on calling internal number? Thursday, November 12, 2009, 12:41:22 AM, Mathieu wrote: $1 gives

Re: [Freeswitch-users] SIP trunk without authentication

2009-11-11 Thread Mathieu Rene
Set it in the user directory entry. All variables all loaded whenever the user is authenticated (before the call hits the dialplan) Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mr...@avgs.ca On 11-Nov-09, at 3:04 PM, Sergey Kobzar

[Freeswitch-users] SIP trunk without authentication

2009-11-10 Thread Sergey Kobzar
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

Re: [Freeswitch-users] SIP trunk without authentication

2009-11-10 Thread Mathieu Rene
As easy as: action application=bridge data=sofia/external/$ {destination_numb...@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