IAX terminator .call file issue

Hello,

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)

TIA.

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 did try that before… This is the log from that attempt:

[Jun 8 22:09:05] VERBOSE[18364] logger.c: – Attempting call on IAX2/iax0/1234567890 for 1234@:2 (Retry 1)
[Jun 8 22:09:05] DEBUG[18364] chan_iax2.c: prepending 4 to prefs
[Jun 8 22:09:05] VERBOSE[13271] logger.c: – Call accepted by 63.211.239.14 (format ulaw)
[Jun 8 22:09:05] VERBOSE[13271] logger.c: – Format for call is ulaw
[Jun 8 22:09:08] VERBOSE[18364] logger.c: == Starting IAX2/iax0-1796 at ,1234,2 failed so falling back to exten ‘s’
[Jun 8 22:09:08] VERBOSE[18364] logger.c: == Starting IAX2/iax0-1796 at ,s,1 still failed so falling back to context ‘default’
[Jun 8 22:09:08] VERBOSE[18364] logger.c: – Executing [s@default:1] Playback(“IAX2/iax0-1796”, “vm-goodbye”) in new stack
[Jun 8 22:09:08] VERBOSE[18364] logger.c: – <IAX2/iax0-1796> Playing ‘vm-goodbye.ulaw’ (language ‘en’)
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Executing [s@default:2] Macro(“IAX2/iax0-1796”, “hangupcall”) in new stack
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Executing [s@macro-hangupcall:1] ResetCDR(“IAX2/iax0-1796”, “vw”) in new stack
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Executing [s@macro-hangupcall:2] NoCDR(“IAX2/iax0-1796”, “”) in new stack
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Executing [s@macro-hangupcall:3] GotoIf(“IAX2/iax0-1796”, “1?skiprg”) in new stack
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Goto (macro-hangupcall,s,6)
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Executing [s@macro-hangupcall:6] GotoIf(“IAX2/iax0-1796”, “1?skipblkvm”) in new stack
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Goto (macro-hangupcall,s,9)
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Executing [s@macro-hangupcall:9] GotoIf(“IAX2/iax0-1796”, “1?theend”) in new stack
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Goto (macro-hangupcall,s,11)
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Executing [s@macro-hangupcall:11] Hangup(“IAX2/iax0-1796”, “”) in new stack
[Jun 8 22:09:09] VERBOSE[18364] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘IAX2/iax0-1796’ in macro ‘hangupcall’
[Jun 8 22:09:09] VERBOSE[18364] logger.c: == Spawn extension (default, s, 2) exited non-zero on ‘IAX2/iax0-1796’
[Jun 8 22:09:09] VERBOSE[18364] logger.c: – Hungup ‘IAX2/iax0-1796’
[Jun 8 22:09:09] NOTICE[18364] pbx_spool.c: Call completed to IAX2/iax0/1234567890

It looks like the call goes through, but it doesn’t actually do it…

Hi

You havent defined a context

Ian

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?