Advertisement
Guest User

Good PSTN Call

a guest
Jun 14th, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.51 KB | None | 0 0
  1. Then I reload asterisk from CLI and do the following
  2.  
  3.  
  4. Asterisk18*CLI> sip show peers
  5. Name/username Host Dyn Forcerport ACL Port Status Realtime
  6. 173.xx.xx.63 173.xx.xx.63 5060 Unmonitored
  7. 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
  8.  
  9. Asterisk18*CLI> core show channels
  10. Channel Location State Application(Data)
  11. 0 active channels
  12. 0 active calls
  13. 36 calls processed
  14.  
  15. Asterisk18*CLI> queue show
  16. 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
  17. Members:
  18. SIP/9013XX9XX8 with penalty 10 (dynamic) (Not in use) has taken 14 calls (last was 118 secs ago)
  19. No Callers
  20.  
  21.  
  22.  
  23.  
  24.  
  25. Then I call from PSTN phone and call is GOOD and the agent gets the INVITE
  26.  
  27. <--- SIP read from UDP:173.xx.xx.107:5060 --->
  28. INVITE sip:[email protected] SIP/2.0
  29. Record-Route: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b;did=da.26eb33d4;vst=SllBCAsBAAQDAHEHBgJuW0JcTVIdTV5dNw-->
  30. Via: SIP/2.0/UDP 173.xx.xx.107;branch=z9hG4bKd7f.570082f.0
  31. Via: SIP/2.0/UDP 173.XX.XX.88;branch=z9hG4bKd7f.97ec4c72.0
  32. From: <sip:[email protected]>;tag=35f20411ce58ce710915b044a6bfe2c1-5e8b
  33. CSeq: 103 INVITE
  34. Call-ID: B2B.365.4070722
  35. Content-Length: 334
  36. User-Agent: OpenSIPS (1.6.4-2-notls (x86_64/linux))
  37. Content-Type: application/sdp
  38. Supported: replaces
  39. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
  40. Max-Forwards: 68
  41. Contact: <sip:173.XX.XX.88:5060;transport=udp>
  42. P-hint: outbound->inbound
  43. P-hint: Route[6]: mediaproxy
  44.  
  45. v=0
  46. o=root 15753 15753 IN IP4 64.2.142.15
  47. s=session
  48. c=IN IP4 173.xx.xx.111
  49. t=0 0
  50. m=audio 2822 RTP/AVP 0 8 3 18 101
  51. a=rtpmap:0 PCMU/8000
  52. a=rtpmap:8 PCMA/8000
  53. a=rtpmap:3 GSM/8000
  54. a=rtpmap:18 G729/8000
  55. a=fmtp:18 annexb=no
  56. a=rtpmap:101 telephone-event/8000
  57. a=fmtp:101 0-16
  58. a=silenceSupp:off - - - -
  59. a=ptime:20
  60. a=sendrecv
  61. <------------->
  62. --- (17 headers 16 lines) ---
  63. Sending to 173.xx.xx.107:5060 (no NAT)
  64. Using INVITE request as basis request - B2B.365.4070722
  65. No matching peer for '9014XX7XX9' from '173.xx.xx.107:5060'
  66. == Using SIP RTP CoS mark 5
  67. Found RTP audio format 0
  68. Found RTP audio format 8
  69. Found RTP audio format 3
  70. Found RTP audio format 18
  71. Found RTP audio format 101
  72. Found audio description format PCMU for ID 0
  73. Found audio description format PCMA for ID 8
  74. Found audio description format GSM for ID 3
  75. Found audio description format G729 for ID 18
  76. Found audio description format telephone-event for ID 101
  77. 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)
  78. Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
  79. Peer audio RTP is at port 173.xx.xx.111:2822
  80. Looking for 9012XX1XX1 in default (domain irock.com)
  81. list_route: hop: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b;did=da.26eb33d4;vst=SllBCAsBAAQDAHEHBgJuW0JcTVIdTV5dNw-->
  82.  
  83. <--- Transmitting (no NAT) to 173.xx.xx.107:5060 --->
  84. SIP/2.0 100 Trying
  85. Via: SIP/2.0/UDP 173.xx.xx.107;branch=z9hG4bKd7f.570082f.0;received=173.xx.xx.107
  86. Via: SIP/2.0/UDP 173.XX.XX.88;branch=z9hG4bKd7f.97ec4c72.0
  87. Record-Route: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b;did=da.26eb33d4;vst=SllBCAsBAAQDAHEHBgJuW0JcTVIdTV5dNw-->
  88. From: <sip:[email protected]>;tag=35f20411ce58ce710915b044a6bfe2c1-5e8b
  89. Call-ID: B2B.365.4070722
  90. CSeq: 103 INVITE
  91. Server: Asterisk PBX 1.8.4.2
  92. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
  93. Supported: replaces, timer
  94. Contact: <sip:[email protected]:5060>
  95. Content-Length: 0
  96.  
  97.  
  98. <------------>
  99. -- Executing [9012XX1XX1@default:1] Answer("SIP/64.2.142.15-00000032", "") in new stack
  100. Audio is at 5060
  101. Adding codec 0x2 (gsm) to SDP
  102. Adding codec 0x4 (ulaw) to SDP
  103. Adding codec 0x8 (alaw) to SDP
  104. Adding non-codec 0x1 (telephone-event) to SDP
  105.  
  106. <--- Reliably Transmitting (no NAT) to 173.xx.xx.107:5060 --->
  107. SIP/2.0 200 OK
  108. Via: SIP/2.0/UDP 173.xx.xx.107;branch=z9hG4bKd7f.570082f.0;received=173.xx.xx.107
  109. Via: SIP/2.0/UDP 173.XX.XX.88;branch=z9hG4bKd7f.97ec4c72.0
  110. Record-Route: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b;did=da.26eb33d4;vst=SllBCAsBAAQDAHEHBgJuW0JcTVIdTV5dNw-->
  111. From: <sip:[email protected]>;tag=35f20411ce58ce710915b044a6bfe2c1-5e8b
  112. To: <sip:[email protected]>;tag=as6aec3303
  113. Call-ID: B2B.365.4070722
  114. CSeq: 103 INVITE
  115. Server: Asterisk PBX 1.8.4.2
  116. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
  117. Supported: replaces, timer
  118. Contact: <sip:[email protected]:5060>
  119. Content-Type: application/sdp
  120. Content-Length: 310
  121.  
  122. v=0
  123. o=root 244130491 244130491 IN IP4 173.xx.xx.63
  124. s=Asterisk PBX 1.8.4.2
  125. c=IN IP4 173.xx.xx.63
  126. t=0 0
  127. m=audio 18066 RTP/AVP 3 0 8 101
  128. a=rtpmap:3 GSM/8000
  129. a=rtpmap:0 PCMU/8000
  130. a=rtpmap:8 PCMA/8000
  131. a=rtpmap:101 telephone-event/8000
  132. a=fmtp:101 0-16
  133. a=silenceSupp:off - - - -
  134. a=ptime:20
  135. a=sendrecv
  136.  
  137. <------------>
  138.  
  139. <--- SIP read from UDP:173.xx.xx.107:5060 --->
  140. ACK sip:[email protected]:5060 SIP/2.0
  141. Record-Route: <sip:173.xx.xx.107;lr=on;ftag=35f20411ce58ce710915b044a6bfe2c1-5e8b>
  142. Via: SIP/2.0/UDP 173.xx.xx.107;branch=z9hG4bKd7f.570082f.2
  143. Via: SIP/2.0/UDP 173.XX.XX.88;branch=z9hG4bKd7f.a7ec4c72.0
  144. To: <sip:[email protected]>;tag=as6aec3303
  145. From: <sip:[email protected]>;tag=35f20411ce58ce710915b044a6bfe2c1-5e8b
  146. CSeq: 103 ACK
  147. Call-ID: B2B.365.4070722
  148. Content-Length: 0
  149. User-Agent: OpenSIPS (1.6.4-2-notls (x86_64/linux))
  150. Max-Forwards: 69
  151. Contact: <sip:173.XX.XX.88:5060;transport=udp>
  152.  
  153. <------------->
  154. --- (12 headers 0 lines) ---
  155. -- Executing [9012XX1XX1@default:2] Queue("SIP/64.2.142.15-00000032", "irock.com,tT,,,300") in new stack
  156. -- Started music on hold, class 'default', on SIP/64.2.142.15-00000032
  157. > doing dnsmgr_lookup for 'ae.com'
  158. Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: NOTIFY)
  159. Reliably Transmitting (NAT) to 173.xx.xx.107:5060:
  160. NOTIFY sip:[email protected]:5060 SIP/2.0
  161. Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK141fe0e4;rport
  162. Max-Forwards: 70
  163. From: "asterisk" <sip:[email protected]>;tag=as2f10523c
  164. To: <sip:[email protected]:5060>
  165. Contact: <sip:[email protected]:5060>
  166. CSeq: 102 NOTIFY
  167. User-Agent: Asterisk PBX 1.8.4.2
  168. Event: message-summary
  169. Content-Type: application/simple-message-summary
  170. Content-Length: 89
  171.  
  172. Messages-Waiting: no
  173. Message-Account: sip:[email protected]
  174. Voice-Message: 0/0 (0/0)
  175.  
  176. ---
  177. == Using SIP RTP CoS mark 5
  178. Audio is at 5060
  179.  
  180. <--- SIP read from UDP:173.xx.xx.107:5060 --->
  181. SIP/2.0 405 Method Not Allowed
  182. Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK141fe0e4;rport=5060
  183. From: "asterisk" <sip:[email protected]>;tag=as2f10523c
  184. To: <sip:[email protected]:5060>;tag=90ecd6ebfaa7dfa0f1f8f06360e22e19.902c
  185. CSeq: 102 NOTIFY
  186. Server: ae SIP Proxy
  187. Content-Length: 0
  188.  
  189. <------------->
  190. --- (8 headers 0 lines) ---
  191. [Jun 14 17:04:10] WARNING[1390]: chan_sip.c:20140 handle_response: Host '173.xx.xx.107:5060' does not implement 'NOTIFY'
  192. Adding codec 0x4 (ulaw) to SDP
  193. Adding codec 0x2 (gsm) to SDP
  194. Adding codec 0x8 (alaw) to SDP
  195. Adding codec 0x800000000000 (testlaw) to SDP
  196. Adding non-codec 0x1 (telephone-event) to SDP
  197. Reliably Transmitting (NAT) to 173.xx.xx.107:5060:
  198. INVITE sip:[email protected]:5060 SIP/2.0
  199. Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK551af5a5;rport
  200. Max-Forwards: 70
  201. From: "9014XX7XX9" <sip:[email protected]>;tag=as43504b15
  202. To: <sip:[email protected]:5060>
  203. Contact: <sip:[email protected]:5060>
  204. CSeq: 102 INVITE
  205. User-Agent: Asterisk PBX 1.8.4.2
  206. Date: Tue, 14 Jun 2011 22:04:10 GMT
  207. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
  208. Supported: replaces, timer
  209. Content-Type: application/sdp
  210. Content-Length: 310
  211.  
  212. v=0
  213. o=root 839867384 839867384 IN IP4 173.xx.xx.63
  214. s=Asterisk PBX 1.8.4.2
  215. c=IN IP4 173.xx.xx.63
  216. t=0 0
  217. m=audio 16658 RTP/AVP 0 3 8 101
  218. a=rtpmap:0 PCMU/8000
  219. a=rtpmap:3 GSM/8000
  220. a=rtpmap:8 PCMA/8000
  221. a=rtpmap:101 telephone-event/8000
  222. a=fmtp:101 0-16
  223. a=silenceSupp:off - - - -
  224. a=ptime:20
  225. a=sendrecv
  226.  
  227. ---
  228.  
  229. <--- SIP read from UDP:173.xx.xx.107:5060 --->
  230. SIP/2.0 100 Giving a try
  231. Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK551af5a5;rport=5060
  232. From: "9014XX7XX9" <sip:[email protected]>;tag=as43504b15
  233. To: <sip:[email protected]:5060>
  234. CSeq: 102 INVITE
  235. Server: ae SIP Proxy
  236. Content-Length: 0
  237.  
  238. <------------->
  239. --- (8 headers 0 lines) ---
  240.  
  241. <--- SIP read from UDP:173.xx.xx.107:5060 --->
  242. SIP/2.0 180 Ringing
  243. Via: SIP/2.0/UDP 173.xx.xx.63:5060;rport=5060;received=173.xx.xx.63;branch=z9hG4bK551af5a5
  244. Record-Route: <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA->
  245. From: "9014XX7XX9" <sip:[email protected]>;tag=as43504b15
  246. To: <sip:[email protected]:5060>;tag=732c1eb145cc4313972b46bf012cd9aa
  247. CSeq: 102 INVITE
  248. Server: Blink 0.2.7 (Windows)
  249. Contact: <sip:[email protected]:57111>
  250. Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER
  251. Content-Length: 0
  252. P-hint: Onreply-route - fixcontact
  253.  
  254. <------------->
  255. --- (12 headers 0 lines) ---
  256. -- SIP/9013XX9XX8-00000033 is ringing
  257.  
  258. <--- SIP read from UDP:173.xx.xx.107:5060 --->
  259. SIP/2.0 200 OK
  260. Via: SIP/2.0/UDP 173.xx.xx.63:5060;rport=5060;received=173.xx.xx.63;branch=z9hG4bK551af5a5
  261. Record-Route: <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA->
  262. From: "9014XX7XX9" <sip:[email protected]>;tag=as43504b15
  263. To: <sip:[email protected]:5060>;tag=732c1eb145cc4313972b46bf012cd9aa
  264. CSeq: 102 INVITE
  265. Server: Blink 0.2.7 (Windows)
  266. Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER
  267. Contact: <sip:[email protected]:57111>
  268. Supported: 100rel, norefersub
  269. Content-Type: application/sdp
  270. Content-Length: 238
  271. P-hint: Onreply-route - fixcontact
  272.  
  273. v=0
  274. o=- 3517059799 3517059800 IN IP4 64.132.245.122
  275. s=Blink 0.2.7 (Windows)
  276. c=IN IP4 173.xx.xx.111
  277. t=0 0
  278. m=audio 2824 RTP/AVP 0 101
  279. a=rtcp:2825
  280. a=rtpmap:0 PCMU/8000
  281. a=rtpmap:101 telephone-event/8000
  282. a=fmtp:101 0-15
  283. a=sendrecv
  284. <------------->
  285. --- (14 headers 11 lines) ---
  286. Found RTP audio format 0
  287. Found RTP audio format 101
  288. Found audio description format PCMU for ID 0
  289. Found audio description format telephone-event for ID 101
  290. Capabilities: us - 0x80000008000e (gsm|ulaw|alaw|h263|testlaw), peer - audio=0x4 (ulaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x4 (ulaw)
  291. Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
  292. Peer audio RTP is at port 173.xx.xx.111:2824
  293. list_route: hop: <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA->
  294. set_destination: Parsing <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA-> for address/port to send to
  295. set_destination: set destination to 173.xx.xx.107:5060
  296. Transmitting (NAT) to 173.xx.xx.107:5060:
  297. ACK sip:[email protected]:57111 SIP/2.0
  298. Via: SIP/2.0/UDP 173.xx.xx.63:5060;branch=z9hG4bK50c9b88f;rport
  299. Route: <sip:173.xx.xx.107;lr;ftag=as43504b15;did=263.96e1cc7;vst=AAAAAAAAAAAAAAAAAAAACBcbCw5cAAAAbXVuaWNhdGlvbnMuY29tOjUwNjA->
  300. Max-Forwards: 70
  301. From: "9014XX7XX9" <sip:[email protected]>;tag=as43504b15
  302. To: <sip:[email protected]:5060>;tag=732c1eb145cc4313972b46bf012cd9aa
  303. Contact: <sip:[email protected]:5060>
  304. CSeq: 102 ACK
  305. User-Agent: Asterisk PBX 1.8.4.2
  306. Content-Length: 0
  307.  
  308.  
  309. ---
  310. -- SIP/9013XX9XX8-00000033 connected line has changed. Saving it until answer for SIP/64.2.142.15-00000032
  311. -- SIP/9013XX9XX8-00000033 answered SIP/64.2.142.15-00000032
  312. -- Stopped music on hold on SIP/64.2.142.15-00000032
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319. While the agent is on the call with the caller I do the following commands on the CLI
  320.  
  321. Asterisk18*CLI> sip show peers
  322. Name/username Host Dyn Forcerport ACL Port Status Realtime
  323. 173.xx.xx.63 173.xx.xx.63 5060 Unmonitored
  324. 9013XX9XX8/9013XX9XX8 173.xx.xx.107 N 5060 Unmonitored Cached RT
  325. 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
  326. Asterisk18*CLI> core show channels
  327. Channel Location State Application(Data)
  328. SIP/9013XX9XX8-00000 [email protected] Up AppQueue((Outgoing Line))
  329. SIP/64.2.142.15-0000 9012XX1XX1@default:2 Up Queue(irock.com,tT,,,300)
  330. 2 active channels
  331. 1 active call
  332. 38 calls processed
  333. Asterisk18*CLI> queue show
  334. 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
  335. Members:
  336. SIP/9013XX9XX8 with penalty 10 (dynamic) (Busy) has taken 15 calls (last was 117 secs ago)
  337. No Callers
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345. Now after I hang up and do the CLI commands again it looks like
  346.  
  347. Asterisk18*CLI> queue show
  348. 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
  349. Members:
  350. SIP/9013XX9XX8 with penalty 10 (dynamic) (Not in use) has taken 15 calls (last was 6 secs ago)
  351. No Callers
  352.  
  353. Asterisk18*CLI> core show channels
  354. Channel Location State Application(Data)
  355. 0 active channels
  356. 0 active calls
  357. 37 calls processed
  358.  
  359. Asterisk18*CLI> sip show peers
  360. Name/username Host Dyn Forcerport ACL Port Status Realtime
  361. 173.xx.xx.63 173.xx.xx.63 5060 Unmonitored
  362. 9013XX9XX8/9013XX9XX8 173.xx.xx.107 N 5060 Unmonitored Cached RT
  363. 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement