I’ve been running Asterisk as a hobbyist for about 9 years, starting with version 1.2. I’m now on version 11. Up until a few days ago, I had phone service through Comcast, and used a Sipura SPA-3000 to interface with Asterisk. I recently ported my Comcast number over to T-Mobile, and am now using a Neogate TG-100 GSM to SIP gateway instead.
I also have a few free DID numbers from IPKall, which require periodic activity to keep the accounts going. For years, I used a cron job to copy call files in the middle of the night, triggering automatic calls. It would call, hold for 20 seconds, and hang up. It worked well. More recently, instead of using call files, I’ve been running the asterisk -x “originate …” command directly from cron. That also worked well.
Now that I have a different interface to the outside world, I am trying to set things up to call via the Neogate rather than the Sipura. My test calls are not going through.
Here’s what I have:
extensions.conf ->
[outgoing]
exten => 1234,1,MusicOnHold(default,30)
same => n,Hangup
iax.conf ->
[GSMGate]
type=peer
context=gsm-gate
host=192.168.1.53
qualify=yes
secret=[password]
disallow=all
allow=ulaw, alaw, gsm
From the CLI:
At which time, I get this:
[quote]*CLI> originate IAX2/GSMGate/4259061234 extension 1234@outgoing
– Hungup ‘IAX2/GSMGate-1497’[/quote]
With IAX2 debugging enabled:
[quote]IAX2 Debugging Enabled
*CLI> originate IAX2/GSMGate/4259061234 extension 1234@outgoing
Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00019ms SCall: 04234 DCall: 00000 [192.168.1.53:4569]
VERSION : 2
CALLED NUMBER : 4259061234
CODEC_PREFS : (ulaw)
CALLING PRESNTN : 67
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
LANGUAGE : en
FORMAT : 4
FORMAT2 : ulaw
CAPABILITY : 4
CAPABILITY2 : ulaw
ADSICPE : 2
DATE TIME : 2014-11-04 13:53:36
Rx-Frame Retry[Yes] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: CTOKEN
Timestamp: 00019ms SCall: 00001 DCall: 04234 [192.168.1.53:4569]
CALLTOKEN : 51 bytes
Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00020ms SCall: 04234 DCall: 00000 [192.168.1.53:4569]
VERSION : 2
CALLED NUMBER : 4259061234
CODEC_PREFS : (ulaw)
CALLING PRESNTN : 67
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
LANGUAGE : en
FORMAT : 4
FORMAT2 : ulaw
CAPABILITY : 4
CAPABILITY2 : ulaw
ADSICPE : 2
DATE TIME : 2014-11-04 13:53:36
CALLTOKEN : 51 bytes
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REJECT
Timestamp: 00008ms SCall: 00523 DCall: 04234 [192.168.1.53:4569]
CAUSE : No such context/extension
CAUSE CODE : 3
Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00008ms SCall: 04234 DCall: 00523 [192.168.1.53:4569]
– Hungup 'IAX2/GSMGate-4234’
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00018ms SCall: 00447 DCall: 00000 [192.168.1.53:4569]
Tx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: PONG
Timestamp: 00018ms SCall: 00001 DCall: 00447 [192.168.1.53:4569]
Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00018ms SCall: 00447 DCall: 00001 [192.168.1.53:4569]
Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00013ms SCall: 00971 DCall: 00000 [192.168.1.53:4569]
Rx-Frame Retry[Yes] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: PONG
Timestamp: 00013ms SCall: 00001 DCall: 00971 [192.168.1.53:4569]
Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00013ms SCall: 00971 DCall: 00001 [192.168.1.53:4569]
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00019ms SCall: 00549 DCall: 00000 [192.168.1.53:4569]
Tx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: PONG
Timestamp: 00019ms SCall: 00001 DCall: 00549 [192.168.1.53:4569]
Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00019ms SCall: 00549 DCall: 00001 [192.168.1.53:4569]
Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00013ms SCall: 10175 DCall: 00000 [192.168.1.53:4569]
Rx-Frame Retry[Yes] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: PONG
Timestamp: 00013ms SCall: 00001 DCall: 10175 [192.168.1.53:4569]
Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00013ms SCall: 10175 DCall: 00001 [192.168.1.53:4569]
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00003ms SCall: 00031 DCall: 00000 [192.168.1.53:4569]
Tx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: PONG
Timestamp: 00003ms SCall: 00001 DCall: 00031 [192.168.1.53:4569]
Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00003ms SCall: 00031 DCall: 00001 [192.168.1.53:4569]
Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00014ms SCall: 06249 DCall: 00000 [192.168.1.53:4569]
[/quote]
Placing calls via the Neogate (GSMGate in iax.conf) goes through as expected. I can’t figure out why originating a call on the CLI using the same interface would be any different. I also have no idea what any of that info on the debugger means.