Thank you for the info, I have got the sip debug now (see below). You are right, I need to change the trunk definitions so that it matches my criteria. I already know the problem is insecure=very in my definitions. As all four trunks are connected to the same IP (same provider), the first that matches the criteria is considered to be ok. I just do not know how to change the criteria. Basically, I need to add “some” criteria to the trunk definitions telling if DID does not match, then do not receive call through that trunk. Or alternatively I was thinking of “marking” it somehow so that in CDR i see which one of the numbers (=trunks) were called. I have read all the variables on the web page you sent me (thank you), but not really sure which one would help me. Was thinking about amaflags, but as far as it does not change the trunk criteria but just categorizes the call within already-wrong-trunk, I am unsure this is the right way to go.
All I need is to know what number was called in CDR. Now, all incoming calls to all numbers are logged in CDR as a channel SIP/222-00000xxx (where 00000xxx is a call number I guess).
Here is my sip debug. Again, all I replaced were my original 9-digit phone numbers (=loginnames) to 111, 222, 333, 444. In this case, I made a call from a number 724522113 to 111, which is again logged in CDR as a call to channel SIP/222:
[[email protected] ~]# asterisk -r
Asterisk 1.8.6.0, Copyright © 1999 - 2011 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
Connected to Asterisk 1.8.6.0 currently running on freepbx (pid = 2926)
Verbosity is at least 10
freepbxCLI> sip set debug peer 111
SIP Debugging Enabled for IP: 81.91.216.18
freepbxCLI> sip set debug peer 222
SIP Debugging Enabled for IP: 81.91.216.18
[2011-12-12 10:15:11] NOTICE[3103]: chan_sip.c:13946 check_auth: Correct auth, but based on stale nonce received from ‘sip:[email protected];tag=1784587034’
[2011-12-12 10:15:21] NOTICE[3103]: chan_sip.c:12593 sip_reregister: – Re-registration for [email protected]
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.91.216.18:5060:
REGISTER sip:81.91.216.18 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK4e041958;rport
Max-Forwards: 70
From: sip:[email protected];tag=as51ef39b0
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 882 REGISTER
User-Agent: FPBX-2.9.0(1.8.6.0)
Authorization: Digest username=“333”, realm=“asterisk”, algorithm=MD5, uri=“sip:81.91.216.18”, nonce=“0d424f99”, response="80e5a8d01c6a9d07caa764fe15bcb80b"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK4e041958;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as51ef39b0
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 882 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK4e041958;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as51ef39b0
To: sip:[email protected];tag=as57b27227
Call-ID: [email protected].168.1.7
CSeq: 882 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="130396a1"
Content-Length: 0
<------------->
— (11 headers 0 lines) —
Responding to challenge, registration to domain/host name 81.91.216.18
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.91.216.18:5060:
REGISTER sip:81.91.216.18 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK7ea954b1;rport
Max-Forwards: 70
From: sip:[email protected];tag=as04ac7ce6
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 883 REGISTER
User-Agent: FPBX-2.9.0(1.8.6.0)
Authorization: Digest username=“333”, realm=“asterisk”, algorithm=MD5, uri=“sip:81.91.216.18”, nonce=“130396a1”, response="116eee22e597643988bb9503c00fa043"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK7ea954b1;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as04ac7ce6
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 883 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:81.91.216.18:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK7c0c39f7;rport
Max-Forwards: 70
From: “asterisk” sip:[email protected];tag=as457c1a46
To: sip:[email protected]:5060
Contact: sip:[email protected]:5060
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.7.0
Date: Mon, 12 Dec 2011 09:15:20 GMT
Session-Expires: 120
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (15 headers 0 lines) —
Looking for 333 in from-sip-external (domain 192.168.1.7:5060)
<— Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK7c0c39f7;received=81.91.216.18;rport=5060
From: “asterisk” sip:[email protected];tag=as457c1a46
To: sip:[email protected]:5060;tag=as22de8bdc
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: sip:192.168.1.7:5060
Accept: application/sdp
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘[email protected]:5060’ in 32000 ms (Method: OPTIONS)
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK7ea954b1;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as04ac7ce6
To: sip:[email protected];tag=as57b27227
Call-ID: [email protected]
CSeq: 883 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 120
Contact: sip:[email protected]:5060;expires=120
Date: Mon, 12 Dec 2011 09:15:20 GMT
Content-Length: 0
<------------->
— (13 headers 0 lines) —
Scheduling destruction of SIP dialog ‘[email protected]’ in 32000 ms (Method: REGISTER)
[2011-12-12 10:15:21] NOTICE[3103]: chan_sip.c:20125 handle_response_register: Outbound Registration: Expiry for 81.91.216.18 is 120 sec (Scheduling reregistration in 105 s)
[2011-12-12 10:15:21] NOTICE[3103]: chan_sip.c:12593 sip_reregister: – Re-registration for [email protected]
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.91.216.18:5060:
REGISTER sip:81.91.216.18 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK769aa37d;rport
Max-Forwards: 70
From: sip:[email protected];tag=as435f4545
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 882 REGISTER
User-Agent: FPBX-2.9.0(1.8.6.0)
Authorization: Digest username=“111”, realm=“asterisk”, algorithm=MD5, uri=“sip:81.91.216.18”, nonce=“047f948e”, response="18c472381ec1be0ae50e1b41a97ef56f"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK769aa37d;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as435f4545
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 882 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK769aa37d;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as435f4545
To: sip:[email protected];tag=as3e5bd1e9
Call-ID: [email protected]
CSeq: 882 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="515c8cbe"
Content-Length: 0
<------------->
— (11 headers 0 lines) —
Responding to challenge, registration to domain/host name 81.91.216.18
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.91.216.18:5060:
REGISTER sip:81.91.216.18 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK31bab95c;rport
Max-Forwards: 70
From: sip:[email protected];tag=as4bda06d5
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 883 REGISTER
User-Agent: FPBX-2.9.0(1.8.6.0)
Authorization: Digest username=“111”, realm=“asterisk”, algorithm=MD5, uri=“sip:81.91.216.18”, nonce=“515c8cbe”, response="22dbbb7fbeeae224ce968adfa26ad315"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK31bab95c;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as4bda06d5
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 883 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:81.91.216.18:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK4c32c80b;rport
Max-Forwards: 70
From: “asterisk” sip:[email protected];tag=as5450d479
To: sip:[email protected]:5060
Contact: sip:[email protected]:5060
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.7.0
Date: Mon, 12 Dec 2011 09:15:20 GMT
Session-Expires: 120
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (15 headers 0 lines) —
Looking for 111 in from-sip-external (domain 192.168.1.7:5060)
<— Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK4c32c80b;received=81.91.216.18;rport=5060
From: “asterisk” sip:[email protected];tag=as5450d479
To: sip:[email protected]:5060;tag=as33138f9c
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: sip:192.168.1.7:5060
Accept: application/sdp
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘[email protected]:5060’ in 32000 ms (Method: OPTIONS)
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK31bab95c;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as4bda06d5
To: sip:[email protected];tag=as3e5bd1e9
Call-ID: [email protected]
CSeq: 883 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 120
Contact: sip:[email protected]:5060;expires=120
Date: Mon, 12 Dec 2011 09:15:20 GMT
Content-Length: 0
<------------->
— (13 headers 0 lines) —
Scheduling destruction of SIP dialog ‘[email protected]’ in 32000 ms (Method: REGISTER)
[2011-12-12 10:15:21] NOTICE[3103]: chan_sip.c:20125 handle_response_register: Outbound Registration: Expiry for 81.91.216.18 is 120 sec (Scheduling reregistration in 105 s)
[2011-12-12 10:15:21] NOTICE[3103]: chan_sip.c:12593 sip_reregister: – Re-registration for [email protected]
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.91.216.18:5060:
REGISTER sip:81.91.216.18 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK33a53d4e;rport
Max-Forwards: 70
From: sip:[email protected];tag=as2d8d69dc
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 882 REGISTER
User-Agent: FPBX-2.9.0(1.8.6.0)
Authorization: Digest username=“222”, realm=“asterisk”, algorithm=MD5, uri=“sip:81.91.216.18”, nonce=“03a54dcd”, response="466ded77bacddca64dcffcf75f7eea72"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK33a53d4e;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as2d8d69dc
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 882 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK33a53d4e;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as2d8d69dc
To: sip:[email protected];tag=as345840fc
Call-ID: [email protected]
CSeq: 882 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="1d40bde7"
Content-Length: 0
<------------->
— (11 headers 0 lines) —
Responding to challenge, registration to domain/host name 81.91.216.18
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.91.216.18:5060:
REGISTER sip:81.91.216.18 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK4d91db66;rport
Max-Forwards: 70
From: sip:[email protected];tag=as60cef5c7
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 883 REGISTER
User-Agent: FPBX-2.9.0(1.8.6.0)
Authorization: Digest username=“222”, realm=“asterisk”, algorithm=MD5, uri=“sip:81.91.216.18”, nonce=“1d40bde7”, response="3923a900c3f093cc96835317ea441998"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK4d91db66;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as60cef5c7
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 883 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:81.91.216.18:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK630eba2b;rport
Max-Forwards: 70
From: “asterisk” sip:[email protected];tag=as5c8a813b
To: sip:[email protected]:5060
Contact: sip:[email protected]:5060
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.7.0
Date: Mon, 12 Dec 2011 09:15:20 GMT
Session-Expires: 120
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (15 headers 0 lines) —
Looking for 222 in from-sip-external (domain 192.168.1.7:5060)
<— Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK630eba2b;received=81.91.216.18;rport=5060
From: “asterisk” sip:[email protected];tag=as5c8a813b
To: sip:[email protected]:5060;tag=as7512ff5c
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: sip:192.168.1.7:5060
Accept: application/sdp
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘[email protected]:5060’ in 32000 ms (Method: OPTIONS)
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK4d91db66;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as60cef5c7
To: sip:[email protected];tag=as345840fc
Call-ID: [email protected]
CSeq: 883 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 120
Contact: sip:[email protected]:5060;expires=120
Date: Mon, 12 Dec 2011 09:15:20 GMT
Content-Length: 0
<------------->
— (13 headers 0 lines) —
Scheduling destruction of SIP dialog ‘[email protected]’ in 32000 ms (Method: REGISTER)
[2011-12-12 10:15:21] NOTICE[3103]: chan_sip.c:20125 handle_response_register: Outbound Registration: Expiry for 81.91.216.18 is 120 sec (Scheduling reregistration in 105 s)
[2011-12-12 10:15:21] NOTICE[3103]: chan_sip.c:12593 sip_reregister: – Re-registration for [email protected]
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.91.216.18:5060:
REGISTER sip:81.91.216.18 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK25d40a71;rport
Max-Forwards: 70
From: sip:[email protected];tag=as4703f3b8
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 883 REGISTER
User-Agent: FPBX-2.9.0(1.8.6.0)
Authorization: Digest username=“444”, realm=“asterisk”, algorithm=MD5, uri=“sip:81.91.216.18”, nonce=“7cf5dca9”, response="0a091e24e193b40d350b9ad4376459d3"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK25d40a71;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as4703f3b8
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 883 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK25d40a71;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as4703f3b8
To: sip:[email protected];tag=as49d311a2
Call-ID: [email protected]
CSeq: 883 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="5a6efcf9"
Content-Length: 0
<------------->
— (11 headers 0 lines) —
Responding to challenge, registration to domain/host name 81.91.216.18
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.91.216.18:5060:
REGISTER sip:81.91.216.18 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK5a3a8f96;rport
Max-Forwards: 70
From: sip:[email protected];tag=as7930c9be
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 884 REGISTER
User-Agent: FPBX-2.9.0(1.8.6.0)
Authorization: Digest username=“444”, realm=“asterisk”, algorithm=MD5, uri=“sip:81.91.216.18”, nonce=“5a6efcf9”, response="a59b5d5f5328b99ae12ab7b030d70c7e"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK5a3a8f96;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as7930c9be
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 884 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:81.91.216.18:5060 —>
OPTIONS sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK636f29b2;rport
Max-Forwards: 70
From: “asterisk” sip:[email protected];tag=as28527fce
To: sip:[email protected]:5060
Contact: sip:[email protected]:5060
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.7.0
Date: Mon, 12 Dec 2011 09:15:21 GMT
Session-Expires: 120
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
— (15 headers 0 lines) —
Looking for 444 in from-sip-external (domain 192.168.1.7:5060)
<— Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK636f29b2;received=81.91.216.18;rport=5060
From: “asterisk” sip:[email protected];tag=as28527fce
To: sip:[email protected]:5060;tag=as14291704
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: sip:192.168.1.7:5060
Accept: application/sdp
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘[email protected]:5060’ in 32000 ms (Method: OPTIONS)
<— SIP read from UDP:81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK5a3a8f96;received=192.168.1.7;rport=5060
From: sip:[email protected];tag=as7930c9be
To: sip:[email protected];tag=as49d311a2
Call-ID: [email protected]
CSeq: 884 REGISTER
Server: Asterisk PBX 1.8.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 120
Contact: sip:[email protected]:5060;expires=120
Date: Mon, 12 Dec 2011 09:15:21 GMT
Content-Length: 0
<------------->
— (13 headers 0 lines) —
Scheduling destruction of SIP dialog ‘[email protected]’ in 32000 ms (Method: REGISTER)
[2011-12-12 10:15:21] NOTICE[3103]: chan_sip.c:20125 handle_response_register: Outbound Registration: Expiry for 81.91.216.18 is 120 sec (Scheduling reregistration in 105 s)
<— SIP read from UDP:81.91.216.18:5060 —>
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK5b83255c;rport
Max-Forwards: 70
From: “724522113” sip:[email protected];tag=as0e8a36bc
To: sip:[email protected]:5060
Contact: sip:[email protected]:5060
Call-ID: [email protected]:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.8.7.0
Date: Mon, 12 Dec 2011 09:15:22 GMT
Session-Expires: 120
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326
v=0
o=root 470101552 470101552 IN IP4 81.91.216.18
s=Asterisk PBX 1.8.7.0
c=IN IP4 81.91.216.18
t=0 0
m=audio 11444 RTP/AVP 8 0 97 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
<------------->
— (16 headers 15 lines) —
Sending to 81.91.216.18:5060 (NAT)
Using INVITE request as basis request - [email protected]:5060
Found peer ‘222’ for ‘724522113’ from 81.91.216.18:5060
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Found RTP audio format 8
Found RTP audio format 0
Found RTP audio format 97
Found RTP audio format 3
Found RTP audio format 101
Found audio description format PCMA for ID 8
Found audio description format PCMU for ID 0
Found audio description format iLBC for ID 97
Found audio description format GSM for ID 3
Found audio description format telephone-event for ID 101
Capabilities: us - 0xe (gsm|ulaw|alaw), peer - audio=0x40e (gsm|ulaw|alaw|ilbc)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0xe (gsm|ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 81.91.216.18:11444
Looking for 111 in from-trunk (domain 192.168.1.7:5060)
list_route: hop: sip:[email protected]:5060
<— Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK5b83255c;received=81.91.216.18;rport=5060
From: “724522113” sip:[email protected];tag=as0e8a36bc
To: sip:[email protected]:5060
Call-ID: [email protected]:5060
CSeq: 102 INVITE
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 120;refresher=uas
Contact: sip:[email protected]:5060
Content-Length: 0
<------------>
– Executing [[email protected]:1] Set(“SIP/222-000000c1”, “__FROM_DID=111”) in new stack
– Executing [[email protected]:2] Gosub(“SIP/222-000000c1”, “app-blacklist-check,s,1”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/222-000000c1”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“SIP/222-000000c1”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“SIP/222-000000c1”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/222-000000c1”, “0 ?Set(CALLERID(name)=724522113)”) in new stack
– Executing [[email protected]:4] Set(“SIP/222-000000c1”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:5] Set(“SIP/222-000000c1”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [[email protected]:6] Goto(“SIP/222-000000c1”, “from-did-direct,14,1”) in new stack
– Goto (from-did-direct,14,1)
– Executing [[email protected]:1] ExecIf(“SIP/222-000000c1”, “0?Set(__RINGTIMER=0)”) in new stack
– Executing [[email protected]:2] Macro(“SIP/222-000000c1”, “exten-vm,novm,14,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“SIP/222-000000c1”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“SIP/222-000000c1”, “AMPUSER=724522113”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/222-000000c1”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/222-000000c1”, “1?Set(REALCALLERIDNUM=724522113)”) in new stack
– Executing [[email protected]:4] Set(“SIP/222-000000c1”, “AMPUSER=”) in new stack
– Executing [[email protected]:5] Set(“SIP/222-000000c1”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/222-000000c1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [[email protected]:13] GotoIf(“SIP/222-000000c1”, “0?continue”) in new stack
– Executing [[email protected]:14] Set(“SIP/222-000000c1”, “__TTL=64”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/222-000000c1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [[email protected]:26] Set(“SIP/222-000000c1”, “CALLERID(number)=724522113”) in new stack
– Executing [[email protected]:27] Set(“SIP/222-000000c1”, “CALLERID(name)=724522113”) in new stack
– Executing [[email protected]:28] Set(“SIP/222-000000c1”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/222-000000c1”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“SIP/222-000000c1”, “__EXTTOCALL=14”) in new stack
– Executing [[email protected]:4] Set(“SIP/222-000000c1”, “__PICKUPMARK=14”) in new stack
– Executing [[email protected]:5] Set(“SIP/222-000000c1”, “RT=”) in new stack
– Executing [[email protected]:6] Macro(“SIP/222-000000c1”, “record-enable,14,IN”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/222-000000c1”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] ExecIf(“SIP/222-000000c1”, “0?MacroExit()”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/222-000000c1”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,14)
– Executing [[email protected]:14] GotoIf(“SIP/222-000000c1”, “1?IN”) in new stack
– Goto (macro-record-enable,s,18)
– Executing [[email protected]:18] ExecIf(“SIP/222-000000c1”, “1?MacroExit()”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/222-000000c1”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,13)
– Executing [[email protected]:13] GosubIf(“SIP/222-000000c1”, “0?clrheader,1”) in new stack
– Executing [[email protected]:14] Macro(“SIP/222-000000c1”, “dial-one,tr,14”) in new stack
– Executing [[email protected]:1] Set(“SIP/222-000000c1”, “DEXTEN=14”) in new stack
– Executing [[email protected]:2] Set(“SIP/222-000000c1”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/222-000000c1”, “0?screen,1”) in new stack
– Executing [[email protected]:4] GosubIf(“SIP/222-000000c1”, “0?cf,1”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/222-000000c1”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“SIP/222-000000c1”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/222-000000c1”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“SIP/222-000000c1”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/222-000000c1”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [[email protected]:23] GotoIf(“SIP/222-000000c1”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [[email protected]:24] ExecIf(“SIP/222-000000c1”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [[email protected]:25] GotoIf(“SIP/222-000000c1”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“SIP/222-000000c1”, “1?dstring,1:dlocal,1”) in new stack
– Executing [[email protected]:1] Set(“SIP/222-000000c1”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“SIP/222-000000c1”, “DEVICES=14”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/222-000000c1”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/222-000000c1”, “0?Set(DEVICES=4)”) in new stack
– Executing [[email protected]:5] Set(“SIP/222-000000c1”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“SIP/222-000000c1”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“SIP/222-000000c1”, “THISDIAL=SIP/14”) in new stack
– Executing [[email protected]:8] GosubIf(“SIP/222-000000c1”, “1?zap2dahdi,1”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/222-000000c1”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“SIP/222-000000c1”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“SIP/222-000000c1”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“SIP/222-000000c1”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“SIP/222-000000c1”, “THISPART2=SIP/14”) in new stack
– Executing [[email protected]:6] ExecIf(“SIP/222-000000c1”, “0?Set(THISPART2=DAHDI/14)”) in new stack
– Executing [[email protected]:7] Set(“SIP/222-000000c1”, “NEWDIAL=SIP/14&”) in new stack
– Executing [[email protected]:8] Set(“SIP/222-000000c1”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/222-000000c1”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“SIP/222-000000c1”, “THISDIAL=SIP/14”) in new stack
– Executing [[email protected]:11] Return(“SIP/222-000000c1”, “”) in new stack
– Executing [[email protected]:9] Set(“SIP/222-000000c1”, “DSTRING=SIP/14&”) in new stack
– Executing [[email protected]:10] Set(“SIP/222-000000c1”, “ITER=2”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/222-000000c1”, “0?begin”) in new stack
– Executing [[email protected]:12] Set(“SIP/222-000000c1”, “DSTRING=SIP/14”) in new stack
– Executing [[email protected]:13] Return(“SIP/222-000000c1”, “”) in new stack
– Executing [[email protected]:27] GotoIf(“SIP/222-000000c1”, “0?nodial”) in new stack
– Executing [[email protected]:28] GotoIf(“SIP/222-000000c1”, “1?skiptrace”) in new stack
– Goto (macro-dial-one,s,30)
– Executing [[email protected]:30] Set(“SIP/222-000000c1”, “D_OPTIONS=tr”) in new stack
– Executing [[email protected]:31] ExecIf(“SIP/222-000000c1”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [[email protected]:32] ExecIf(“SIP/222-000000c1”, “0?SIPAddHeader()”) in new stack
– Executing [[email protected]:33] ExecIf(“SIP/222-000000c1”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:34] GosubIf(“SIP/222-000000c1”, “0?qwait,1”) in new stack
– Executing [[email protected]:35] Set(“SIP/222-000000c1”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:36] Set(“SIP/222-000000c1”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]o-dial-one:37] GotoIf(“SIP/222-000000c1”, “0?usegoto,1”) in new stack
– Executing [[email protected]:38] GotoIf(“SIP/222-000000c1”, “0?godial”) in new stack
– Executing [[email protected]:39] Set(“SIP/222-000000c1”, “CONNECTEDLINE(name,i)=Bossy doma”) in new stack
– Executing [[email protected]:40] Set(“SIP/222-000000c1”, “CONNECTEDLINE(num)=14”) in new stack
– Executing [[email protected]:41] Set(“SIP/222-000000c1”, “D_OPTIONS=trI”) in new stack
– Executing [[email protected]:42] Dial(“SIP/222-000000c1”, “SIP/14,trI”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/14
<— Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK5b83255c;received=81.91.216.18;rport=5060
From: “724522113” sip:[email protected];tag=as0e8a36bc
To: sip:[email protected]:5060;tag=as47af9b88
Call-ID: [email protected]:5060
CSeq: 102 INVITE
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 120;refresher=uas
Contact: sip:[email protected]:5060
Content-Length: 0
<------------>
– Connected line update to SIP/222-000000c1 prevented.
– SIP/14-000000c2 is ringing
<— Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK5b83255c;received=81.91.216.18;rport=5060
From: “724522113” sip:[email protected];tag=as0e8a36bc
To: sip:[email protected]:5060;tag=as47af9b88
Call-ID: [email protected]:5060
CSeq: 102 INVITE
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 120;refresher=uas
Contact: sip:[email protected]:5060
Content-Length: 0
<------------>
– SIP/14-000000c2 is ringing
<— SIP read from UDP:81.91.216.18:5060 —>
CANCEL sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK5b83255c;rport
Max-Forwards: 70
From: “724522113” sip:[email protected];tag=as0e8a36bc
To: sip:[email protected]:5060
Call-ID: [email protected]:5060
CSeq: 102 CANCEL
User-Agent: Asterisk PBX 1.8.7.0
Content-Length: 0
<------------->
— (9 headers 0 lines) —
Sending to 81.91.216.18:5060 (NAT)
<— Reliably Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK5b83255c;received=81.91.216.18;rport=5060
From: “724522113” sip:[email protected];tag=as0e8a36bc
To: sip:[email protected]:5060;tag=as47af9b88
Call-ID: [email protected]:5060
CSeq: 102 INVITE
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
<— Transmitting (NAT) to 81.91.216.18:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK5b83255c;received=81.91.216.18;rport=5060
From: “724522113” sip:[email protected];tag=as0e8a36bc
To: sip:[email protected]:5060;tag=as47af9b88
Call-ID: [email protected]:5060
CSeq: 102 CANCEL
Server: FPBX-2.9.0(1.8.6.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
== Spawn extension (macro-dial-one, s, 42) exited non-zero on ‘SIP/222-000000c1’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 14) exited non-zero on ‘SIP/222-000000c1’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 14, 2) exited non-zero on ‘SIP/222-000000c1’
– Executing [[email protected]:1] Macro(“SIP/222-000000c1”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/222-000000c1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] Hangup(“SIP/222-000000c1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/222-000000c1’ in macro ‘hangupcall’
== Spawn extension (from-did-direct, h, 1) exited non-zero on ‘SIP/222-000000c1’
<— SIP read from UDP:81.91.216.18:5060 —>
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 81.91.216.18:5060;branch=z9hG4bK5b83255c;rport
Max-Forwards: 70
From: “724522113” sip:[email protected];tag=as0e8a36bc
To: sip:[email protected]:5060;tag=as47af9b88
Contact: sip:[email protected]:5060
Call-ID: [email protected]:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.8.7.0
Content-Length: 0
<------------->
— (10 headers 0 lines) —
Really destroying SIP dialog ‘[email protected]:5060’ Method: ACK
freepbxCLI> sip set debug off
SIP Debugging Disabled
freepbxCLI>