I set
trustrpid = yes
sendrpid = yes
and
trustrpid = no
sendrpid = yes
both version I couldn’t make a call.
Then I comment outed
;trustrpid = no
;sendrpid = yes
And changed plan :
exten => _X.,1,Set(CALLERID(all)=Test <02124441234>)
exten => _X.,n,NoOp(${CALLERID(all)})
exten => _X.,n,Dial(SIP/${EXTEN}@OutboundSIP,30)
And here is the results:
Audio is at 192.168.2.151 port 16878
Adding codec 0x100 (g729) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 84.11.111.1:5060:
INVITE sip:05305235244@84.11.111.1 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.151:5060;branch=z9hG4bK128baabc;rport
From: “asterisk” sip:02122134114@84.11.111.1;tag=as6c07d647
To: sip:05305235244@84.11.111.1
Contact: sip:02122134114@192.168.2.151
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 14 Oct 2009 14:12:55 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Type: application/sdp
Content-Length: 263
v=0
o=root 3586 3586 IN IP4 192.168.2.151
s=session
c=IN IP4 192.168.2.151
t=0 0
m=audio 16878 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
<— SIP read from 84.11.111.1:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.2.151:5060;rport=5060;received=213.194.109.226;branch=z9hG4bK128baabc
From: “asterisk” sip:02122134114@84.11.111.1:5060;tag=as6c07d647
To: sip:05305235244@84.11.111.1:5060
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 102 INVITE
Content-Length: 0
<------------->
— (7 headers 0 lines) —
<— SIP read from 84.11.111.1:5060 —>
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.2.151:5060;rport=5060;received=213.194.109.226;branch=z9hG4bK128baabc
To: sip:05305235244@84.11.111.1:5060;tag=3464518420-487772
From: “asterisk” sip:02122134114@84.11.111.1:5060;tag=as6c07d647
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 102 INVITE
Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER, NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISH
Contact: sip:05305235244@84.11.111.1:5060
Call-Info: sip:84.11.111.1;method="NOTIFY;Event=telephone-event;Duration=1000"
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from 84.11.111.1:5060 —>
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.2.151:5060;rport=5060;received=213.194.109.226;branch=z9hG4bK128baabc
To: sip:05305235244@84.11.111.1:5060;tag=3464518420-487772
From: “asterisk” sip:02122134114@84.11.111.1:5060;tag=as6c07d647
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 102 INVITE
Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER, NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISH
Contact: sip:05305235244@84.11.111.1:5060
Call-Info: sip:84.11.111.1;method="NOTIFY;Event=telephone-event;Duration=1000"
Content-Type: application/sdp
Content-Length: 205
v=0
o=btnxtmsc1 32802 33538 IN IP4 84.11.111.1
s=sip call
c=IN IP4 84.11.111.1
t=0 0
m=audio 21504 RTP/AVP 18 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=fmtp:18 annexb=no
a=ptime:20
<------------->
— (11 headers 10 lines) —
Found RTP audio format 18
Found RTP audio format 101
Peer audio RTP is at port 84.11.111.1:21504
Found audio description format telephone-event for ID 101
Capabilities: us - 0x100 (g729), peer - audio=0x100 (g729)/video=0x0 (nothing), combined - 0x100 (g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 84.11.111.1:21504
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘phpagi’ logged on from 192.168.2.61
<— SIP read from 84.11.111.1:5060 —>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.2.151:5060;rport=5060;received=213.194.109.226;branch=z9hG4bK128baabc
To: sip:05305235244@84.11.111.1:5060;tag=3464518420-487772
From: “asterisk” sip:02122134114@84.11.111.1:5060;tag=as6c07d647
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 102 INVITE
Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER, NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISH
Contact: sip:05305235244@84.11.111.1:5060
Call-Info: sip:84.11.111.1;method="NOTIFY;Event=telephone-event;Duration=1000"
Content-Type: application/sdp
Content-Length: 205
v=0
o=btnxtmsc1 32802 33538 IN IP4 84.11.111.1
s=sip call
c=IN IP4 84.11.111.1
t=0 0
m=audio 21504 RTP/AVP 18 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=fmtp:18 annexb=no
a=ptime:20
<------------->
— (11 headers 10 lines) —
Found RTP audio format 18
Found RTP audio format 101
Peer audio RTP is at port 84.11.111.1:21504
Found audio description format telephone-event for ID 101
Capabilities: us - 0x100 (g729), peer - audio=0x100 (g729)/video=0x0 (nothing), combined - 0x100 (g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 84.11.111.1:21504
<— SIP read from 192.168.2.115:53189 —>
<------------->
<— SIP read from 84.11.111.1:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.151:5060;rport=5060;received=213.194.109.226;branch=z9hG4bK128baabc
To: sip:05305235244@84.11.111.1:5060;tag=3464518420-487772
From: “asterisk” sip:02122134114@84.11.111.1:5060;tag=as6c07d647
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 102 INVITE
Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER, NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISH
Contact: sip:05305235244@84.11.111.1:5060
Call-Info: sip:84.11.111.1;method="NOTIFY;Event=telephone-event;Duration=1000"
Content-Type: application/sdp
Content-Length: 205
v=0
o=btnxtmsc1 32802 33538 IN IP4 84.11.111.1
s=sip call
c=IN IP4 84.11.111.1
t=0 0
m=audio 21504 RTP/AVP 18 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=fmtp:18 annexb=no
a=ptime:20
<------------->
— (11 headers 10 lines) —
Found RTP audio format 18
Found RTP audio format 101
Peer audio RTP is at port 84.11.111.1:21504
Found audio description format telephone-event for ID 101
Capabilities: us - 0x100 (g729), peer - audio=0x100 (g729)/video=0x0 (nothing), combined - 0x100 (g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 84.11.111.1:21504
list_route: hop: sip:05305235244@84.11.111.1:5060
set_destination: Parsing sip:05305235244@84.11.111.1:5060 for address/port to send to
set_destination: set destination to 84.11.111.1, port 5060
Transmitting (NAT) to 84.11.111.1:5060:
ACK sip:05305235244@84.11.111.1:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.151:5060;branch=z9hG4bK468e6b22;rport
From: “asterisk” sip:02122134114@84.11.111.1;tag=as6c07d647
To: sip:05305235244@84.11.111.1;tag=3464518420-487772
Contact: sip:02122134114@192.168.2.151
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
> Channel SIP/BorusanOutboundSIP-08fe74c8 was answered.
-- Executing [05305235244@ContextBorusan:1] Set("SIP/BorusanOutboundSIP-08fe74c8", "DATETIME=14102009_171301") in new stack
-- Executing [05305235244@ContextBorusan:2] NoOp("SIP/BorusanOutboundSIP-08fe74c8", "DATETIME: 14102009_171301") in new stack
-- Executing [05305235244@ContextBorusan:3] Set("SIP/BorusanOutboundSIP-08fe74c8", "CALLFILENAME=05305235244__14102009_171301") in new stack
-- Executing [05305235244@ContextBorusan:4] NoOp("SIP/BorusanOutboundSIP-08fe74c8", "CALLFILENAME: 05305235244__14102009_171301") in new stack
-- Executing [05305235244@ContextBorusan:5] Monitor("SIP/BorusanOutboundSIP-08fe74c8", "wav|05305235244__14102009_171301|m") in new stack
-- Executing [05305235244@ContextBorusan:6] Set("SIP/BorusanOutboundSIP-08fe74c8", "CALLERID(all)=Test <02124441234>") in new stack
-- Executing [05305235244@ContextBorusan:7] NoOp("SIP/BorusanOutboundSIP-08fe74c8", ""Test" <02124441234>") in new stack
-- Executing [05305235244@ContextBorusan:8] Dial("SIP/BorusanOutboundSIP-08fe74c8", "SIP/05305235244@BorusanOutboundSIP|30") in new stack
Audio is at 192.168.2.151 port 18224
Adding codec 0x100 (g729) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 84.11.111.1:5060:
INVITE sip:05305235244@84.11.111.1 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.151:5060;branch=z9hG4bK1483138e;rport
From: “Test” sip:02122134114@84.11.111.1;tag=as2b216624
To: sip:05305235244@84.11.111.1
Contact: sip:02122134114@192.168.2.151
Call-ID: 2eb786846f824d052e4a59d93af7c221@84.11.111.1
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 14 Oct 2009 14:13:01 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Type: application/sdp
Content-Length: 263
v=0
o=root 3586 3586 IN IP4 192.168.2.151
s=session
c=IN IP4 192.168.2.151
t=0 0
m=audio 18224 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
-- Called 05305235244@BorusanOutboundSIP
<— SIP read from 84.11.111.1:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.2.151:5060;rport=5060;received=213.194.109.226;branch=z9hG4bK1483138e
From: “Test” sip:02122134114@84.11.111.1:5060;tag=as2b216624
To: sip:05305235244@84.11.111.1:5060
Call-ID: 2eb786846f824d052e4a59d93af7c221@84.11.111.1
CSeq: 102 INVITE
Content-Length: 0
<------------->
— (7 headers 0 lines) —
<— SIP read from 84.11.111.1:5060 —>
SIP/2.0 486 Busy here
Via: SIP/2.0/UDP 192.168.2.151:5060;rport=5060;received=213.194.109.226;branch=z9hG4bK1483138e
To: sip:05305235244@84.11.111.1:5060;tag=3464518424-49699
From: “Test” sip:02122134114@84.11.111.1:5060;tag=as2b216624
Call-ID: 2eb786846f824d052e4a59d93af7c221@84.11.111.1
CSeq: 102 INVITE
Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER, NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISH
Contact: sip:05305235244@84.11.111.1:5060
Call-Info: sip:84.11.111.1;method="NOTIFY;Event=telephone-event;Duration=1000"
Content-Length: 0
<------------->
— (10 headers 0 lines) —
– Got SIP response 486 “Busy here” back from 84.11.111.1
Transmitting (NAT) to 84.11.111.1:5060:
ACK sip:05305235244@84.11.111.1 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.151:5060;branch=z9hG4bK1483138e;rport
From: “Test” sip:02122134114@84.11.111.1;tag=as2b216624
To: sip:05305235244@84.11.111.1;tag=3464518424-49699
Contact: sip:02122134114@192.168.2.151
Call-ID: 2eb786846f824d052e4a59d93af7c221@84.11.111.1
CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
-- SIP/BorusanOutboundSIP-08ff2500 is busy
== Everyone is busy/congested at this time (1:1/0/0)
== Auto fallthrough, channel ‘SIP/BorusanOutboundSIP-08fe74c8’ status is 'BUSY’
Really destroying SIP dialog ‘2eb786846f824d052e4a59d93af7c221@84.11.111.1’ Method: INVITE
<— SIP read from 84.11.111.1:5060 —>
BYE sip:02122134114@192.168.2.151:5060 SIP/2.0
Max-Forwards: 69
To: “asterisk” sip:02122134114@84.11.111.1:5060;tag=as6c07d647
From: sip:05305235244@84.11.111.1:5060;tag=3464518420-487772
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 2 BYE
Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER, NOTIFY, INFO, REFER, SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISH
Via: SIP/2.0/UDP 84.11.111.1:5060;branch=z9hG4bKcc49be00910d1e0ca8f9502b1d2e89d3
Contact: sip:05305235244@84.11.111.1:5060
Content-Length: 0
<------------->
— (10 headers 0 lines) —
Sending to 84.11.111.1 : 5060 (NAT)
<— Transmitting (NAT) to 84.11.111.1:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 84.11.111.1:5060;branch=z9hG4bKcc49be00910d1e0ca8f9502b1d2e89d3;received=84.11.111.1
From: sip:05305235244@84.11.111.1:5060;tag=3464518420-487772
To: “asterisk” sip:02122134114@84.11.111.1:5060;tag=as6c07d647
Call-ID: 568ef10e2f91e30b5bb53cde01267aa0@84.11.111.1
CSeq: 2 BYE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Length: 0