Last spring, I installed asterisk on a server with static ip outside my house and got it communicating with SPA3102 inside my house.
Over the summer I read thru Asterisk TFoT and got some examples working.
I installed phpagi with festival and managed to construct a simple system where I do database lookup based on user input (dept#) and respond with dept name and telephone number from database. Wow! In the fall, I saw reference on this list to freephoneline.ca (fpl) and got that working.

But when it comes changes in extensions.conf; I just don't get it!

So far, I have been able to take simple examples for extensions.conf and make them work in my context; but each time I try to extend the functionality within extensions.conf, I get stumped.

In the fpl example that Peng Li posted to this list in mid-December; he had:

[fpl_in]
 exten => _12891234567/_800.,1,Hangup
 exten => _12891234567/_866.,1,Hangup
 exten => _12891234567/_877.,1,Hangup
 exten => _12891234567/_888.,1,Hangup
 exten => _12891234567/_1800.,1,Hangup
 exten => _12891234567/_1866.,1,Hangup
 exten => _12891234567/_1877.,1,Hangup
 exten => _12891234567/_1888.,1,Hangup
 exten => _12891234567,1,Dial(SIP/2001&SIP/2002&SIP/2003&SIP/2004,${RT})
 exten => _12891234567,n,Goto(in_fpl-${DIALSTATUS},1)
 exten => _12891234567,n,Hangup
 exten => _in_fpl-.,1,Hangup(16)

I could find no reference to '/' in first parm to exten in TFoT. I did some reading and found that callerid comes after '/'. I deduced from this (perhaps incorrectly) that the 800/866/877/888 entries block incoming calls from tollfree numbers.

I figured out the Dial() example appears to be some kind of call-forward function. I changed it to Dial(SIP/19999999...@fpl,60,) and sure enough; I can call anywhere in Canada using fpl as long as I change 9999999999 to the number I want to reach before I actually dial my own fpl number. It works, but I'd some more flexibility.

As early as last summer I was thinking about a setup that looks the same thing that Apa Minerala mentioned in mid-December when he gave a link to canadafreecalls.com

OK, finally to the point; responses can freely cut everything before this.

My goal is to allow selected callers enter a PIN number (PIN depends on callerid) and they can dial any Canadian telephone number using fpl.

From previously mentioned examples, I have ('XXXX' are really numbers):
 exten => _1226289XXXX,n,Dial(SIP/1519702x...@fpl,60,)
which forwards calls to 1519870XXXX when I dial 226289XXXX. As a first step towards my goal; my first attempt was to change this to:
 exten => _1226289XXXX/_1519455.,n,Dial(SIP/1519702x...@fpl,60,)

Using _1519455. or _519455. produces same results. When I dial 226289XXXX from 519455XXXX, I get:

[Jan 16 09:45:13] NOTICE[15707]: chan_sip.c:17962 handle_request_invite: Call from '1226289XXXX' to extension '1226289XXXX' rejected because extension not found.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to