Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Then I reload asterisk from CLI and do the following
- Asterisk18*CLI> sip show peers
- Name/username Host Dyn Forcerport ACL Port Status Realtime
- 173.xx.xx.63 173.xx.xx.63 5060 Unmonitored
- 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
- Asterisk18*CLI> core show channels
- Channel Location State Application(Data)
- 0 active channels
- 0 active calls
- 36 calls processed
- Asterisk18*CLI> queue show
- irock.com has 0 calls (max unlimited) in 'ringall' strategy (4s holdtime, 172s talktime), W:0, C:14, A:16, SL:0.0% within 0s
- Members:
- SIP/9013XX9XX8 with penalty 10 (dynamic) (Not in use) has taken 14 calls (last was 118 secs ago)
- No Callers
- Then I call from PSTN phone and call is GOOD and the agent gets the INVITE
- <--- SIP read from UDP:173.xx.xx.107:5060 --->
- INVITE sip:9012XX1XX1@irock.com SIP/2.0
- Record-Route: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b;did=da.26eb33d4;vst=SllBCAsBAAQDAHEHBgJuW0JcTVIdTV5dNw-->
- Via: SIP/2.0/UDP 173.xx.xx.107;branch=z9hG4bKd7f.570082f.0
- Via: SIP/2.0/UDP 173.XX.XX.88;branch=z9hG4bKd7f.97ec4c72.0
- From: <sip:9014XX7XX9@64.2.142.15>;tag=35f20411ce58ce710915b044a6bfe2c1-5e8b
- To: <sip:9012XX1XX1@irock.com>
- CSeq: 103 INVITE
- Call-ID: B2B.365.4070722
- Content-Length: 334
- User-Agent: OpenSIPS (1.6.4-2-notls (x86_64/linux))
- Content-Type: application/sdp
- Supported: replaces
- Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
- Max-Forwards: 68
- Contact: <sip:173.XX.XX.88:5060;transport=udp>
- P-hint: outbound->inbound
- P-hint: Route[6]: mediaproxy
- v=0
- o=root 15753 15753 IN IP4 64.2.142.15
- s=session
- c=IN IP4 173.xx.xx.111
- t=0 0
- m=audio 2822 RTP/AVP 0 8 3 18 101
- a=rtpmap:0 PCMU/8000
- a=rtpmap:8 PCMA/8000
- a=rtpmap:3 GSM/8000
- 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
- <------------->
- --- (17 headers 16 lines) ---
- Sending to 173.xx.xx.107:5060 (no NAT)
- Using INVITE request as basis request - B2B.365.4070722
- No matching peer for '9014XX7XX9' from '173.xx.xx.107:5060'
- == Using SIP RTP CoS mark 5
- Found RTP audio format 0
- Found RTP audio format 8
- Found RTP audio format 3
- Found RTP audio format 18
- Found RTP audio format 101
- Found audio description format PCMU for ID 0
- Found audio description format PCMA for ID 8
- Found audio description format GSM for ID 3
- Found audio description format G729 for ID 18
- Found audio description format telephone-event for ID 101
- Capabilities: us - 0x80000008000e (gsm|ulaw|alaw|h263|testlaw), peer - audio=0x10e (gsm|ulaw|alaw|g729)/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 173.xx.xx.111:2822
- Looking for 9012XX1XX1 in default (domain irock.com)
- list_route: hop: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b;did=da.26eb33d4;vst=SllBCAsBAAQDAHEHBgJuW0JcTVIdTV5dNw-->
- <--- Transmitting (no NAT) to 173.xx.xx.107:5060 --->
- SIP/2.0 100 Trying
- Via: SIP/2.0/UDP 173.xx.xx.107;branch=z9hG4bKd7f.570082f.0;received=173.xx.xx.107
- Via: SIP/2.0/UDP 173.XX.XX.88;branch=z9hG4bKd7f.97ec4c72.0
- Record-Route: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b;did=da.26eb33d4;vst=SllBCAsBAAQDAHEHBgJuW0JcTVIdTV5dNw-->
- From: <sip:9014XX7XX9@64.2.142.15>;tag=35f20411ce58ce710915b044a6bfe2c1-5e8b
- To: <sip:9012XX1XX1@irock.com>
- Call-ID: B2B.365.4070722
- CSeq: 103 INVITE
- Server: Asterisk PBX 1.8.4.2
- Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
- Supported: replaces, timer
- Contact: <sip:9012XX1XX1@173.xx.xx.63:5060>
- Content-Length: 0
- <------------>
- -- Executing [9012XX1XX1@default:1] Answer("SIP/64.2.142.15-00000032", "") in new stack
- Audio is at 5060
- Adding codec 0x2 (gsm) to SDP
- Adding codec 0x4 (ulaw) to SDP
- Adding codec 0x8 (alaw) to SDP
- Adding non-codec 0x1 (telephone-event) to SDP
- <--- Reliably Transmitting (no NAT) to 173.xx.xx.107:5060 --->
- SIP/2.0 200 OK
- Via: SIP/2.0/UDP 173.xx.xx.107;branch=z9hG4bKd7f.570082f.0;received=173.xx.xx.107
- Via: SIP/2.0/UDP 173.XX.XX.88;branch=z9hG4bKd7f.97ec4c72.0
- Record-Route: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b;did=da.26eb33d4;vst=SllBCAsBAAQDAHEHBgJuW0JcTVIdTV5dNw-->
- From: <sip:9014XX7XX9@64.2.142.15>;tag=35f20411ce58ce710915b044a6bfe2c1-5e8b
- To: <sip:9012XX1XX1@irock.com>;tag=as6aec3303
- Call-ID: B2B.365.4070722
- CSeq: 103 INVITE
- Server: Asterisk PBX 1.8.4.2
- Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
- Supported: replaces, timer
- Contact: <sip:9012XX1XX1@173.xx.xx.63:5060>
- Content-Type: application/sdp
- Content-Length: 310
- v=0
- o=root 244130491 244130491 IN IP4 173.xx.xx.63
- s=Asterisk PBX 1.8.4.2
- c=IN IP4 173.xx.xx.63
- t=0 0
- m=audio 18066 RTP/AVP 3 0 8 101
- a=rtpmap:3 GSM/8000
- a=rtpmap:0 PCMU/8000
- a=rtpmap:8 PCMA/8000
- a=rtpmap:101 telephone-event/8000
- a=fmtp:101 0-16
- a=silenceSupp:off - - - -
- a=ptime:20
- a=sendrecv
- <------------>
- <--- SIP read from UDP:173.xx.xx.107:5060 --->
- ACK sip:9012XX1XX1@173.xx.xx.63:5060 SIP/2.0
- Record-Route: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b>
- Via: SIP/2.0/UDP 173.xx.xx.107;branch=z9hG4bKd7f.570082f.2
- Via: SIP/2.0/UDP 173.XX.XX.88;branch=z9hG4bKd7f.a7ec4c72.0
- To: <sip:9012XX1XX1@irock.com>;tag=as6aec3303
- From: <sip:9014XX7XX9@64.2.142.15>;tag=35f20411ce58ce710915b044a6bfe2c1-5e8b
- CSeq: 103 ACK
- Call-ID: B2B.365.4070722
- Content-Length: 0
- User-Agent: OpenSIPS (1.6.4-2-notls (x86_64/linux))
- Max-Forwards: 69
- Contact: <sip:173.XX.XX.88:5060;transport=udp>
- <------------->
- --- (12 headers 0 lines) ---
- -- Executing [9012XX1XX1@default:2] Queue("SIP/64.2.142.15-00000032", "irock.com,tT,,,300") in new stack
- -- Started music on hold, class 'default', on SIP/64.2.142.15-00000032
- > doing dnsmgr_lookup for 'ae.com'
- Scheduling destruction of SIP dialog '687ed67845309c1d4ae8d13849e71c32@irock.com' in 32000 ms (Method: NOTIFY)
- Reliably Transmitting (NAT) to 173.xx.xx.107:5060:
- NOTIFY sip:9013XX9XX8@ae.com:5060 SIP/2.0
- Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK141fe0e4;rport
- Max-Forwards: 70
- From: "asterisk" <sip:9013XX9XX8@irock.com>;tag=as2f10523c
- To: <sip:9013XX9XX8@ae.com:5060>
- Contact: <sip:9013XX9XX8@173.xx.xx.63:5060>
- Call-ID: 687ed67845309c1d4ae8d13849e71c32@irock.com
- CSeq: 102 NOTIFY
- User-Agent: Asterisk PBX 1.8.4.2
- Event: message-summary
- Content-Type: application/simple-message-summary
- Content-Length: 89
- Messages-Waiting: no
- Message-Account: sip:asterisk@irock.com
- Voice-Message: 0/0 (0/0)
- ---
- == Using SIP RTP CoS mark 5
- Audio is at 5060
- <--- SIP read from UDP:173.xx.xx.107:5060 --->
- SIP/2.0 405 Method Not Allowed
- Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK141fe0e4;rport=5060
- From: "asterisk" <sip:9013XX9XX8@irock.com>;tag=as2f10523c
- To: <sip:9013XX9XX8@ae.com:5060>;tag=90ecd6ebfaa7dfa0f1f8f06360e22e19.902c
- Call-ID: 687ed67845309c1d4ae8d13849e71c32@irock.com
- CSeq: 102 NOTIFY
- Server: ae SIP Proxy
- Content-Length: 0
- <------------->
- --- (8 headers 0 lines) ---
- [Jun 14 17:04:10] WARNING[1390]: chan_sip.c:20140 handle_response: Host '173.xx.xx.107:5060' does not implement 'NOTIFY'
- Adding codec 0x4 (ulaw) to SDP
- Adding codec 0x2 (gsm) to SDP
- Adding codec 0x8 (alaw) to SDP
- Adding codec 0x800000000000 (testlaw) to SDP
- Adding non-codec 0x1 (telephone-event) to SDP
- Reliably Transmitting (NAT) to 173.xx.xx.107:5060:
- INVITE sip:9013XX9XX8@ae.com:5060 SIP/2.0
- Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK551af5a5;rport
- Max-Forwards: 70
- From: "9014XX7XX9" <sip:9013XX9XX8@irock.com>;tag=as43504b15
- To: <sip:9013XX9XX8@ae.com:5060>
- Contact: <sip:9013XX9XX8@173.xx.xx.63:5060>
- Call-ID: 50610e425e63bb0c6766b97c5699d998@irock.com
- CSeq: 102 INVITE
- User-Agent: Asterisk PBX 1.8.4.2
- Date: Tue, 14 Jun 2011 22:04:10 GMT
- Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
- Supported: replaces, timer
- Content-Type: application/sdp
- Content-Length: 310
- v=0
- o=root 839867384 839867384 IN IP4 173.xx.xx.63
- s=Asterisk PBX 1.8.4.2
- c=IN IP4 173.xx.xx.63
- t=0 0
- m=audio 16658 RTP/AVP 0 3 8 101
- a=rtpmap:0 PCMU/8000
- a=rtpmap:3 GSM/8000
- a=rtpmap:8 PCMA/8000
- a=rtpmap:101 telephone-event/8000
- a=fmtp:101 0-16
- a=silenceSupp:off - - - -
- a=ptime:20
- a=sendrecv
- ---
- <--- SIP read from UDP:173.xx.xx.107:5060 --->
- SIP/2.0 100 Giving a try
- Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK551af5a5;rport=5060
- From: "9014XX7XX9" <sip:9013XX9XX8@irock.com>;tag=as43504b15
- To: <sip:9013XX9XX8@ae.com:5060>
- Call-ID: 50610e425e63bb0c6766b97c5699d998@irock.com
- CSeq: 102 INVITE
- Server: ae SIP Proxy
- Content-Length: 0
- <------------->
- --- (8 headers 0 lines) ---
- <--- SIP read from UDP:173.xx.xx.107:5060 --->
- SIP/2.0 180 Ringing
- Via: SIP/2.0/UDP 173.xx.xx.63:5060;rport=5060;received=173.xx.xx.63;branch=z9hG4bK551af5a5
- Record-Route: <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA->
- Call-ID: 50610e425e63bb0c6766b97c5699d998@irock.com
- From: "9014XX7XX9" <sip:9013XX9XX8@irock.com>;tag=as43504b15
- To: <sip:9013XX9XX8@ae.com:5060>;tag=732c1eb145cc4313972b46bf012cd9aa
- CSeq: 102 INVITE
- Server: Blink 0.2.7 (Windows)
- Contact: <sip:uzcwhgid@64.132.245.122:57111>
- Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER
- Content-Length: 0
- P-hint: Onreply-route - fixcontact
- <------------->
- --- (12 headers 0 lines) ---
- -- SIP/9013XX9XX8-00000033 is ringing
- <--- SIP read from UDP:173.xx.xx.107:5060 --->
- SIP/2.0 200 OK
- Via: SIP/2.0/UDP 173.xx.xx.63:5060;rport=5060;received=173.xx.xx.63;branch=z9hG4bK551af5a5
- Record-Route: <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA->
- Call-ID: 50610e425e63bb0c6766b97c5699d998@irock.com
- From: "9014XX7XX9" <sip:9013XX9XX8@irock.com>;tag=as43504b15
- To: <sip:9013XX9XX8@ae.com:5060>;tag=732c1eb145cc4313972b46bf012cd9aa
- CSeq: 102 INVITE
- Server: Blink 0.2.7 (Windows)
- Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER
- Contact: <sip:uzcwhgid@64.132.245.122:57111>
- Supported: 100rel, norefersub
- Content-Type: application/sdp
- Content-Length: 238
- P-hint: Onreply-route - fixcontact
- v=0
- o=- 3517059799 3517059800 IN IP4 64.132.245.122
- s=Blink 0.2.7 (Windows)
- c=IN IP4 173.xx.xx.111
- t=0 0
- m=audio 2824 RTP/AVP 0 101
- a=rtcp:2825
- a=rtpmap:0 PCMU/8000
- a=rtpmap:101 telephone-event/8000
- a=fmtp:101 0-15
- a=sendrecv
- <------------->
- --- (14 headers 11 lines) ---
- Found RTP audio format 0
- Found RTP audio format 101
- Found audio description format PCMU for ID 0
- Found audio description format telephone-event for ID 101
- Capabilities: us - 0x80000008000e (gsm|ulaw|alaw|h263|testlaw), peer - audio=0x4 (ulaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x4 (ulaw)
- Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
- Peer audio RTP is at port 173.xx.xx.111:2824
- list_route: hop: <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA->
- set_destination: Parsing <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA-> for address/port to send to
- set_destination: set destination to 173.xx.xx.107:5060
- Transmitting (NAT) to 173.xx.xx.107:5060:
- ACK sip:uzcwhgid@64.132.245.122:57111 SIP/2.0
- Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK50c9b88f;rport
- Route: <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA->
- Max-Forwards: 70
- From: "9014XX7XX9" <sip:9013XX9XX8@irock.com>;tag=as43504b15
- To: <sip:9013XX9XX8@ae.com:5060>;tag=732c1eb145cc4313972b46bf012cd9aa
- Contact: <sip:9013XX9XX8@173.xx.xx.63:5060>
- Call-ID: 50610e425e63bb0c6766b97c5699d998@irock.com
- CSeq: 102 ACK
- User-Agent: Asterisk PBX 1.8.4.2
- Content-Length: 0
- ---
- -- SIP/9013XX9XX8-00000033 connected line has changed. Saving it until answer for SIP/64.2.142.15-00000032
- -- SIP/9013XX9XX8-00000033 answered SIP/64.2.142.15-00000032
- -- Stopped music on hold on SIP/64.2.142.15-00000032
- While the agent is on the call with the caller I do the following commands on the CLI
- Asterisk18*CLI> sip show peers
- Name/username Host Dyn Forcerport ACL Port Status Realtime
- 173.xx.xx.63 173.xx.xx.63 5060 Unmonitored
- 9013XX9XX8/9013XX9XX8 173.xx.xx.107 N 5060 Unmonitored Cached RT
- 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
- Asterisk18*CLI> core show channels
- Channel Location State Application(Data)
- SIP/9013XX9XX8-00000 9012XX1XX1@irock.com Up AppQueue((Outgoing Line))
- SIP/64.2.142.15-0000 9012XX1XX1@default:2 Up Queue(irock.com,tT,,,300)
- 2 active channels
- 1 active call
- 38 calls processed
- Asterisk18*CLI> queue show
- irock.com has 0 calls (max unlimited) in 'ringall' strategy (3s holdtime, 141s talktime), W:0, C:15, A:16, SL:0.0% within 0s
- Members:
- SIP/9013XX9XX8 with penalty 10 (dynamic) (Busy) has taken 15 calls (last was 117 secs ago)
- No Callers
- Now after I hang up and do the CLI commands again it looks like
- Asterisk18*CLI> queue show
- irock.com has 0 calls (max unlimited) in 'ringall' strategy (4s holdtime, 141s talktime), W:0, C:15, A:16, SL:0.0% within 0s
- Members:
- SIP/9013XX9XX8 with penalty 10 (dynamic) (Not in use) has taken 15 calls (last was 6 secs ago)
- No Callers
- Asterisk18*CLI> core show channels
- Channel Location State Application(Data)
- 0 active channels
- 0 active calls
- 37 calls processed
- Asterisk18*CLI> sip show peers
- Name/username Host Dyn Forcerport ACL Port Status Realtime
- 173.xx.xx.63 173.xx.xx.63 5060 Unmonitored
- 9013XX9XX8/9013XX9XX8 173.xx.xx.107 N 5060 Unmonitored Cached RT
- 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement