I am new to Asterisk use.
I am trying to auto dial out from one asterisk(A2) server to another asterisk(A1) server which inturn should dial a external sip device(S1).
A1 acts as a bridge between A2 and S1.
A2 has A1, anonymous configured in sip.conf
A1 has A2,S1 configured in sip.conf
call1.call is the simple auto dial file written using examples found on internet.
Channel: SIP/asterisk1/9001
Application: Playback
Data: hello-world
sip.conf in A2 as below:
[asterisk1]
type=friend
host=192.168.1.239
context=from-internal
insecure=invite
allow=all
[anonymous]
type=friend
host=dynamic
allowguest=yes
context=from-internal
allow=all
extension.conf in A2 as below:
[from-internal]
exten = 10000,1,NoOp(“Call tried in auto dial”)
exten = 10000,2,Answer()
exten = 10000,3,Playback(vm-goodbye)
exten = 10000,4,Hangup()
pjsip.conf in A2 as below:
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[anonymous]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
transport=transport-udp
sip.conf in A1 as below:
[asterisk2]
type=friend
host=192.168.0.180
context=from-internal
insecure=invite
allow=all
[9001]
type=friend
host=dynamic
secret=password
allowguest=yes
context=from-internal
allow=all
extension.conf in A1 as below:
[from-internal]
exten = _9XXX,1,NoOp(“Received a call from other asterisk”)
same = n,NoOp(${CALLERID(num)})
same = n,Dial(SIP/${EXTEN})
asterisk console output
** – Attempting call on SIP/asterisk1/9001 for application Playback(hello-world) (Retry 1)
== Using SIP RTP CoS mark 5
We think we can do text
Audio is at 17680
Adding codec slin to SDP
Adding codec ulaw to SDP
Adding codec alaw to SDP
Adding codec gsm to SDP
Adding codec g723 to SDP
Adding codec g726 to SDP
Adding codec g726aal2 to SDP
Adding codec adpcm to SDP
Adding codec slin to SDP
Adding codec slin to SDP
Adding codec slin to SDP
Adding codec slin to SDP
Adding codec slin to SDP
Adding codec slin to SDP
Adding codec slin to SDP
Adding codec slin to SDP
Adding codec lpc10 to SDP
Adding codec g729 to SDP
Adding codec speex to SDP
Adding codec speex to SDP
Adding codec speex to SDP
Adding codec ilbc to SDP
Adding codec g722 to SDP
Adding codec siren7 to SDP
Adding codec siren14 to SDP
Adding codec testlaw to SDP
Adding codec g719 to SDP
Adding codec opus to SDP
Adding codec silk to SDP
Adding codec silk to SDP
Adding codec silk to SDP
Adding codec silk to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 192.168.1.239:5060:
INVITE sip:9001@192.168.1.239 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK320676d4
Max-Forwards: 70
From: “Anonymous” sip:anonymous@anonymous.invalid;tag=as28d048c2
To: sip:9001@192.168.1.239
Contact: sip:anonymous@192.168.0.180:5060
Call-ID: 010f24793351c3866a64be64013b053f@192.168.0.180:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 14.2.1
Date: Fri, 10 Mar 2017 12:04:58 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 1096
v=0
o=root 1529497959 1529497959 IN IP4 192.168.0.180
s=Asterisk PBX 14.2.1
c=IN IP4 192.168.0.180
t=0 0
m=audio 17680 RTP/AVP 10 0 8 3 4 111 112 5 122 118 123 124 125 126 127 96 7 18 110 117 119 97 9 102 115 116 107 101
a=rtpmap:10 L16/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:111 G726-32/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:122 L16/12000
a=rtpmap:118 L16/16000
a=rtpmap:123 L16/24000
a=rtpmap:124 L16/32000
a=rtpmap:125 L16/44000
a=rtpmap:126 L16/48000
a=rtpmap:127 L16/96000
a=rtpmap:96 L16/192000
a=rtpmap:7 LPC/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:110 speex/8000
a=rtpmap:117 speex/16000
a=rtpmap:119 speex/32000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=20
a=rtpmap:9 G722/8000
a=rtpmap:102 G7221/16000
a=fmtp:102 bitrate=32000
a=rtpmap:115 G7221/32000
a=fmtp:115 bitrate=48000
a=rtpmap:116 G719/48000
a=fmtp:116 bitrate=64000
a=rtpmap:107 opus/48000/2
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:20
a=sendrecv
[Mar 10 17:34:58] ERROR[27907]: chan_sip.c:4268 __sip_reliable_xmit: Serious Network Trouble; __sip_xmit returns error for pkt data
– Called asterisk1/9001
Scheduling destruction of SIP dialog ‘010f24793351c3866a64be64013b053f@192.168.0.180:5060’ in 32000 ms (Method: INVITE)
– SIP/asterisk1-0000003d is circuit-busy
Scheduling destruction of SIP dialog ‘010f24793351c3866a64be64013b053f@192.168.0.180:5060’ in 32000 ms (Method: INVITE)
[Mar 10 17:35:30] NOTICE[27905]: pbx_spool.c:413 attempt_thread: Call failed to go through, reason (8) Congestion (circuits busy)
[Mar 10 17:35:30] NOTICE[27905]: pbx_spool.c:416 attempt_thread: Queued call to SIP/asterisk1/9001 expired without completion after 0 attempts**