I can call extensions internally and externally from my iax softphone and wifi sip phone. I’m working with .call files to initiate the calls to PSTN line in my home.
My .call file looks like this:
Channel: IAX2/iax0/91234567890
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Extension: 1234
Priority: 2
(where 1234567890 = my home phone number with a 9 for an outside line like I’m calling from my softphone or wifi phone)
My IAX2 trunk name is iax0
When I copy that file into the directory I get the following error:
[Jun 8 21:44:27] VERBOSE[18195] logger.c: – Attempting call on IAX2/iax0/91234567890 for 1234@:2 (Retry 1)
[Jun 8 21:44:27] DEBUG[18195] chan_iax2.c: prepending 4 to prefs
[Jun 8 21:44:27] VERBOSE[13262] logger.c: – Call accepted by 63.211.239.14 (format ulaw)
[Jun 8 21:44:27] VERBOSE[13262] logger.c: – Format for call is ulaw
[Jun 8 21:44:33] VERBOSE[18195] logger.c: – Hungup ‘IAX2/iax0-7272’
[Jun 8 21:44:33] NOTICE[18195] pbx_spool.c: Call failed to go through, reason (5) Remote end is Busy
How do I access that outside line within the .call file? ( it IS working fine with my softphone and wifi phone through my asterisk a-ok)
Using a callfile the call is placed directly on the trunk and is not started with a Dial() command in the dialplan. So my guess is that it will work if you do not put a 9 in front and just use a number that can be processed by the IAX trunk provider.
I’ve played around with that idea a bit… I set a Context: from-internal in the .call file.
I tried to specify the “from-internal” context that the manual calls seem to work with to no avail… However, I did notice this:
From a manual dial (working):
[Jun 9 01:37:59] VERBOSE[19050] logger.c: – Executing [91234567890@from-internal:1] Macro(“IAX2/4444-9934”, “user-callerid,SKIPTTL,”) in new stack
[
from the .call file (not working):
[Jun 9 01:39:30] VERBOSE[19062] logger.c: – Attempting call on IAX2/iax0/91234567890 for 1234@from-internal:2 (Retry 1)
it definitely is not going down the same path as the manual dial; but I can’t figure out what it’s supposed to be or where it’s coming in?
After playing around with this some more I discovered that if I take the “9” off the phone number it runs the script assigned to extension 1234 but never makes the call. Something is off… Any ideas?