From Obese Goat, 1 Year ago, written in PHP.
This paste is a reply to yate call.execute from Colossal Wigeon - view diff
  1. debug on
  2. Debug level: 10, objects: off, local: on, threshold: 10
  3.  
  4. ------
  5. INVITE sip:26176487@yy.yy.yy.yy:5060 SIP/2.0
  6. Via: SIP/2.0/UDP xx.xx.xx.xx:5060;branch=z9hG4bK3c8240b8
  7. Max-Forwards: 70
  8. From: "000" <sip:67199000@xx.xx.xx.xx>;tag=as712bb24b
  9. To: <sip:26176487@yy.yy.yy.yy:5060>
  10. Contact: <sip:67199000@xx.xx.xx.xx:5060>
  11. Call-ID: 548e4e6c3dc69541240321fb066cedc5@xx.xx.xx.xx:5060
  12. CSeq: 102 INVITE
  13. User-Agent: yate
  14. Date: Wed, 16 May 2018 11:12:47 GMT
  15. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
  16. Supported: replaces, timer
  17. Remote-Party-ID: "000" <sip:67199000@xx.xx.xx.xx>;party=calling;privacy=off;screen=yes
  18. Content-Type: application/sdp
  19. Content-Length: 180
  20.  
  21. v=0
  22. o=root 676551449 676551449 IN IP4 xx.xx.xx.xx
  23. s=Asterisk PBX 11.25.1
  24. c=IN IP4 xx.xx.xx.xx
  25. t=0 0
  26. m=audio 17404 RTP/AVP 8
  27. a=rtpmap:8 PCMA/8000
  28. a=ptime:20
  29. a=sendrecv
  30. ------
  31. 20180516111247.767527 <sip:INFO> 'udp:yy.yy.yy.yy:5060' sending code 100 0x7f4cb4012e50 to xx.xx.xx.xx:5060 [0x55e5c6808c50]
  32. ------
  33. SIP/2.0 100 Trying
  34. Via: SIP/2.0/UDP xx.xx.xx.xx:5060;branch=z9hG4bK3c8240b8;received=xx.xx.xx.xx
  35. From: "000" <sip:67199000@xx.xx.xx.xx>;tag=as712bb24b
  36. To: <sip:26176487@yy.yy.yy.yy:5060>
  37. Call-ID: 548e4e6c3dc69541240321fb066cedc5@xx.xx.xx.xx:5060
  38. CSeq: 102 INVITE
  39. Server: gw
  40. Content-Length: 0
  41.  
  42. ------
  43. 20180516111247.767662 <sip/21633:ALL> YateSIPConnection::YateSIPConnection(0x7f4cb4026760,0x7f4cd40773e0) [0x7f4cb4034460]
  44. 20180516111247.767844 <sip/21633:ALL> NAT address is '(null)' [0x7f4cb4034460]
  45. 20180516111247.768203 <sip/21633:ALL> Set media: audio=alaw [0x7f4cb4034460]
  46. 20180516111247.768453 <INFO> Could not classify call from '67199000', wasted 6 usec
  47. 20180516111247.768614 <register:INFO> On account 'default' performing query 'INSERT INTO cdr VALUES(CAST(1526469167.768 AS UNSIGNED), '1526331306-21633', 'sip/21633', 'xx.xx.xx.xx:5060', '67199000', '26176487', '0.000', '0.000', '0.000', 'incoming', 'incoming', '', 0, NOW())' expects results
  48. 20180516111247.769738 <register:INFO> On account 'default' performing query 'UPDATE cdr SET address = 'xx.xx.xx.xx:5060', direction = 'incoming', billid = '1526331306-21633', caller = '67199000', called = '26176487', duration = '0.000', billtime = '0.000', ringtime  = '0.000', status = 'incoming', reason = '' WHERE chan = 'sip/21633' AND time = CAST(1526469167.768 AS UNSIGNED)' expects results
  49. 20180516111247.773814 <RegexRoute:ALL> Jumping to context 'from_stream' by rule #2 '${address}^xx\.xx\.xx\.xx'
  50. 20180516111247.774150 <INFO> Routing call to '26176487' in context 'default' via 'external/nodata/routing.php' in 489 usec
  51. 20180516111247.774206 <sip/21633:ALL> NAT address is '(null)' [0x7f4cb4034460]
  52. 20180516111247.774460 <ALL> ExtModChan::ExtModChan(1) [0x7f4c640015a0]
  53. 20180516111247.774509 <ALL> ExtModReceiver::ExtModReceiver("routing.php","(null)") [0x7f4c64001670]
  54. 20180516111247.777061 <register:INFO> On account 'default' performing query 'UPDATE cdr SET address = 'xx.xx.xx.xx:5060', direction = 'incoming', billid = '1526331306-21633', caller = '67199000', called = '26176487', duration = '0.006', billtime = '0.000', ringtime  = '0.000', status = 'incoming', reason = '' WHERE chan = 'sip/21633' AND time = CAST(1526469167.768 AS UNSIGNED)' expects results
  55. 20180516111247.777697 <INFO> Launched External Script '/usr/local/share/yate/scripts/routing.php' ''
  56. 20180516111247.778631 <sip:INFO> 'udp:yy.yy.yy.yy:5060' sending code 183 0x7f4c64003a00 to xx.xx.xx.xx:5060 [0x55e5c6808c50]
  57. ------
  58. SIP/2.0 183 Session Progress
  59. Via: SIP/2.0/UDP xx.xx.xx.xx:5060;branch=z9hG4bK3c8240b8;received=xx.xx.xx.xx
  60. From: "000" <sip:67199000@xx.xx.xx.xx>;tag=as712bb24b
  61. To: <sip:26176487@yy.yy.yy.yy:5060>;tag=425239812
  62. Call-ID: 548e4e6c3dc69541240321fb066cedc5@xx.xx.xx.xx:5060
  63. CSeq: 102 INVITE
  64. Server: gw
  65. Contact: <sip:26176487@yy.yy.yy.yy:5060>
  66. Allow: ACK, INVITE, BYE, CANCEL, REGISTER, OPTIONS, INFO
  67. Content-Length: 0
  68.  
  69. ------
  70. 20180516111247.783634 <register:INFO> On account 'default' performing query 'UPDATE cdr SET address = 'xx.xx.xx.xx:5060', direction = 'incoming', billid = '1526331306-21633', caller = '67199000', called = '26176487', duration = '0.015', billtime = '0.000', ringtime  = '0.000', status = 'routed', reason = '' WHERE chan = 'sip/21633' AND time = CAST(1526469167.768 AS UNSIGNED)' expects results
  71. 20180516111247.813484 <ExtModReceiver:ALL> Install 'call.route', prio 80 ok
  72. 20180516111247.814838 <sig/21542:ALL> Trying to call on trunk 'bite' [0x7f4ccc06d450]
  73. 20180516111247.814920 <bite/ISUP:ALL> Call(46) direction=outgoing routing-label=2-116-0:2-117-7:46 range= [0x7f4ccc06d7a0]
  74. 20180516111247.815113 <bite/ISUP:INFO> Sending message (0x7f4ccc003c20)
  75. -----
  76. IAM [cic=46 label=2-116-0:2-117-7:46]  00 00 00 0a 00 02 0b 09 83 90 cb 04 62 71 46 78 0f 0a 06 03 13 76 91 09 00 1d 03 80 90 a3 00
  77.   CalledPartyNumber='BC4026176487.'
  78.   CalledPartyNumber.inn='false'
  79.   CalledPartyNumber.nature='national'
  80.   CalledPartyNumber.plan='isdn'
  81.   CallingPartyCategory='ordinary'
  82.   CallingPartyNumber='67199000'
  83.   CallingPartyNumber.nature='national'
  84.   CallingPartyNumber.plan='isdn'
  85.   CallingPartyNumber.restrict='allowed'
  86.   CallingPartyNumber.screened='network-provided'
  87.   CallingPartyNumber.complete='true'
  88.   UserServiceInformation='alaw'
  89. -----
  90. 20180516111247.815184 <sig/21542:CALL> Outgoing call from=67199000 to=BC4026176487. trunk=bite sigcall=0x7f4ccc06d7a0 [0x7f4ccc06d450]
  91. 20180516111247.815242 <sip/21633:ALL> YateSIPConnection::disconnected() '(null)' [0x7f4cb4034460]
  92. 20180516111247.815463 <sip/21633:ALL> YateSIPConnection::hangup() state=0 trans=0x7f4cd40773e0 error='noanswer' code=487 reason='Request Terminated' [0x7f4cb4034460]
  93. 20180516111247.815584 <sip/21633:ALL> YateSIPConnection::~YateSIPConnection() [0x7f4cb4034460]
  94. 20180516111247.815711 <register:INFO> On account 'default' performing query 'INSERT INTO cdr VALUES(CAST(1526469167.815 AS UNSIGNED), '', 'sig/21542', 'bite/46', '67199000', '26176487', '0.000', '0.000', '0.000', 'outgoing', 'outgoing', '', 0, NOW())' expects results
  95. 20180516111247.816725 <register:INFO> On account 'default' performing query 'UPDATE cdr SET address = 'xx.xx.xx.xx:5060', direction = 'incoming', billid = '1526331306-21633', caller = '67199000', called = '26176487',duration = '0.047', billtime = '0.000', ringtime = '0.000', status = 'accepted', reason = 'Request Terminated', ended = 1 WHERE chan = 'sip/21633' AND time = CAST(1526469167.768 AS UNSIGNED)' expects results
  96. 20180516111247.819198 <sip:INFO> 'udp:yy.yy.yy.yy:5060' sending code 487 0x7f4ccc04c830 to xx.xx.xx.xx:5060 [0x55e5c6808c50]
  97. ------
  98. SIP/2.0 487 Request Terminated
  99. Via: SIP/2.0/UDP xx.xx.xx.xx:5060;branch=z9hG4bK3c8240b8;received=xx.xx.xx.xx
  100. From: "000" <sip:67199000@xx.xx.xx.xx>;tag=as712bb24b
  101. To: <sip:26176487@yy.yy.yy.yy:5060>;tag=425239812
  102. Call-ID: 548e4e6c3dc69541240321fb066cedc5@xx.xx.xx.xx:5060
  103. CSeq: 102 INVITE
  104. Server: gw
  105. Contact: <sip:26176487@yy.yy.yy.yy:5060>
  106. Allow: ACK, INVITE, BYE, CANCEL, REGISTER, OPTIONS, INFO
  107. Content-Length: 0
  108.  
  109. ------
  110. 20180516111247.820219 <sip:INFO> 'udp:yy.yy.yy.yy:5060' received 410 bytes SIP message from xx.xx.xx.xx:5060 [0x55e5c6808c50]
  111. ------
  112. ACK sip:26176487@yy.yy.yy.yy:5060 SIP/2.0
  113. Via: SIP/2.0/UDP xx.xx.xx.xx:5060;branch=z9hG4bK3c8240b8
  114. Max-Forwards: 70
  115. From: "000" <sip:67199000@xx.xx.xx.xx>;tag=as712bb24b
  116. To: <sip:26176487@yy.yy.yy.yy:5060>;tag=425239812
  117. Contact: <sip:67199000@xx.xx.xx.xx:5060>
  118. Call-ID: 548e4e6c3dc69541240321fb066cedc5@xx.xx.xx.xx:5060
  119. CSeq: 102 ACK
  120. User-Agent: yate
  121. Content-Length: 0
  122.  
captcha