From Putrid Eider, 6 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. freeswitch@media1a-pre.kazoo>
  2. freeswitch@media1a-pre.kazoo>
  3. freeswitch@media1a-pre.kazoo>
  4. recv 304 bytes from udp/[10.0.9.59]:31313 at 16:49:20.679980:
  5.    ------------------------------------------------------------------------
  6.    MESSAGE sip:+16466321311@office.nga911.com SIP/2.0
  7.    Via: SIP/2.0/UDP 10.0.9.59:31313
  8.    From: <sip:+12139054794@office.nga911.com>
  9.    To: <sip:+16466321311@office.nga911.com>
  10.    CSeq: 1033 MESSAGE
  11.    Content-Type: text/plain
  12.    Content-Length: 17
  13.    Call-ID: c3df2ccd-b8d7-4eb3-bfde-b9bd0a55e6b9
  14.    
  15.    Hello Don! Sergey
  16.  
  17.    ------------------------------------------------------------------------
  18. 2018-04-25 16:49:20.670875 [INFO] mod_sms.c:368 Processing text message +12139054794->+16466321311 in context e911
  19. Chatplan: +16466321311 parsing [e911->pass_message_directly_to_kazoo] continue=false
  20. Chatplan: +16466321311@office.nga911.com Regex (FAIL) [pass_message_directly_to_kazoo] ${from_user}(+12139054794) =~ /^\+?(19282482284|12132050526)$/ break=on-false
  21. Chatplan: +16466321311 parsing [e911->sms2im-integration-test] continue=false
  22. Chatplan: +16466321311@office.nga911.com Regex (PASS) [sms2im-integration-test] destination_number() =~ /^(.*)$/ break=on-false
  23. Chatplan: +16466321311@office.nga911.com Action info()
  24. Chatplan: +16466321311@office.nga911.com Action set(sip_profile=external)
  25. Chatplan: +16466321311@office.nga911.com Action unset(sip_h_X-AUTH-IP)
  26. Chatplan: +16466321311@office.nga911.com Action unset(sip_h_X-AUTH-PORT)
  27. Chatplan: +16466321311@office.nga911.com Action python(psap_recipient_resolve)
  28. Chatplan: +16466321311@office.nga911.com Action send()
  29. Chatplan: +16466321311@office.nga911.com Action set(sip_profile=null)
  30. 2018-04-25 16:49:20.670875 [INFO] mod_sms.c:495 CHANNEL_DATA:
  31. Event-Name: [MESSAGE]
  32. Core-UUID: [569624d4-bafd-4abd-949d-14f093874c4b]
  33. FreeSWITCH-Hostname: [media1a-pre.kazoo]
  34. FreeSWITCH-Switchname: [media1a-pre.kazoo]
  35. FreeSWITCH-IPv4: [172.18.0.12]
  36. FreeSWITCH-IPv6: [::1]
  37. Event-Date-Local: [2018-04-25 16:49:20]
  38. Event-Date-GMT: [Wed, 25 Apr 2018 16:49:20 GMT]
  39. Event-Date-Timestamp: [1524674960670875]
  40. Event-Calling-File: [sofia_presence.c]
  41. Event-Calling-Function: [sofia_presence_handle_sip_i_message]
  42. Event-Calling-Line-Number: [4893]
  43. Event-Sequence: [308956]
  44. login: [sip:mod_sofia@10.0.9.48:12000]
  45. proto: [sip]
  46. to_proto: [sip]
  47. from: [+12139054794@office.nga911.com]
  48. from_user: [+12139054794]
  49. from_host: [office.nga911.com]
  50. to_user: [+16466321311]
  51. to_host: [office.nga911.com]
  52. from_sip_ip: [10.0.9.59]
  53. from_sip_port: [31313]
  54. to: [+16466321311@office.nga911.com]
  55. subject: [SIMPLE MESSAGE]
  56. context: [e911]
  57. type: [text/plain]
  58. from_full: [<sip:+12139054794@office.nga911.com>]
  59. sip_profile: [external-kamailio]
  60. dest_proto: [sip]
  61. max_forwards: [70]
  62. Content-Length: 17
  63.  
  64. Hello Don! Sergey
  65. 2018-04-25 16:49:20.670875 [NOTICE] mod_python.c:212 Invoking py module: psap_recipient_resolve
  66. 2018-04-25 16:49:20.670875 [DEBUG] mod_python.c:283 Call python script
  67. 2018-04-25 16:49:20.670875 [WARNING] switch_cpp.cpp:1365 PSAP URL: https://csp.nga911.com/routablePsapForTextOrInstantMessage?message_body=Hello+Don%21+Sergey&caller=12139054794&esinetEntryRoutePhoneNumber=16466321311
  68. send 483 bytes to udp/[10.0.9.59]:31313 at 16:49:20.681402:
  69.    ------------------------------------------------------------------------
  70.    SIP/2.0 202 Accepted
  71.    Via: SIP/2.0/UDP 10.0.9.59:31313
  72.    From: <sip:+12139054794@office.nga911.com>
  73.    To: <sip:+16466321311@office.nga911.com>;tag=7pHNBp4BU5Bmc
  74.    Call-ID: c3df2ccd-b8d7-4eb3-bfde-b9bd0a55e6b9
  75.    CSeq: 1033 MESSAGE
  76.    Contact: <sip:10.0.9.48:12000>
  77.    User-Agent: FreeSWITCH-mod_sofia/1.6.19+git-20171224T074649Z~f858a27ad1~64bit
  78.   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
  79.    Supported: timer, path, replaces
  80.    Content-Length: 0
  81.    
  82.    ------------------------------------------------------------------------
  83. 2018-04-25 16:49:20.950879 [DEBUG] mod_python.c:286 Finished calling python script
  84. 2018-04-25 16:49:20.950879 [ERR] mod_python.c:295 Error calling python script
  85. 2018-04-25 16:49:20.950879 [ERR] mod_python.c:164 Python Error by calling script "psap_recipient_resolve": <type 'exceptions.ValueError'>
  86. Message: No JSON object could be decoded
  87. Exception: None
  88.  
  89. Traceback (most recent call last)
  90.         File: "/usr/lib/python2.7/dist-packages/psap_recipient_resolve.py", line 57, in chat
  91.         File: "/usr/lib/python2.7/dist-packages/psap_recipient_resolve.py", line 21, in get_receiver
  92.         File: "/usr/lib/python2.7/json/__init__.py", line 338, in loads
  93.         File: "/usr/lib/python2.7/json/decoder.py", line 366, in decode
  94.         File: "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
  95. 2018-04-25 16:49:20.950879 [ERR] sofia_presence.c:200 Chat proto [sip]
  96. from [+12139054794@office.nga911.com]
  97. to [+16466321311@office.nga911.com]
  98. Hello Don! Sergey
  99. Invalid Profile null
  100. 2018-04-25 16:49:20.950879 [DEBUG] sofia_presence.c:225 Can't find registered user +16466321311@office.nga911.com
  101. send 643 bytes to udp/[52.42.195.203]:5060 at 16:49:21.029695:
  102.    ------------------------------------------------------------------------
  103.    MESSAGE sip:+16466321311@office.nga911.com SIP/2.0
  104.    Via: SIP/2.0/UDP 52.24.72.57:5080;rport;branch=z9hG4bKX1yFmmt86BvUr
  105.    Max-Forwards: 70
  106.    From: <sip:+12139054794@office.nga911.com>;tag=gr8g6FHt6Z5vg
  107.    To: <sip:+16466321311@office.nga911.com>
  108.    Call-ID: 6ae6e7f4-0a01-42e1-affe-ab8c4c78836c
  109.    CSeq: 121723294 MESSAGE
  110.    User-Agent: FreeSWITCH-mod_sofia/1.6.19+git-20171224T074649Z~f858a27ad1~64bit
  111.   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
  112.    Supported: timer, path, replaces
  113.    Content-Type: text/plain
  114.    Content-Length: 17
  115.    X-FS-Sending-Message: 569624d4-bafd-4abd-949d-14f093874c4b
  116.    
  117.    Hello Don! Sergey
  118.  
  119.    ------------------------------------------------------------------------
  120. recv 534 bytes from udp/[52.42.195.203]:5060 at 16:49:21.062707:
  121.    ------------------------------------------------------------------------
  122.    SIP/2.0 202 Accepted
  123.    Via: SIP/2.0/UDP 52.24.72.57:5080;received=35.165.141.141;rport=5080;branch=z9hG4bKX1yFmmt86BvUr
  124.    From: <sip:+12139054794@office.nga911.com>;tag=gr8g6FHt6Z5vg
  125.    To: <sip:+16466321311@office.nga911.com>;tag=D3F9taB34rDpB
  126.    Call-ID: 6ae6e7f4-0a01-42e1-affe-ab8c4c78836c
  127.    CSeq: 121723294 MESSAGE
  128.    Contact: <sip:10.0.9.34:11000>
  129.    User-Agent: proxy.ackone.com
  130.   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
  131.    Supported: path, replaces
  132.    Content-Length: 0
  133.    
  134.    ------------------------------------------------------------------------
  135. freeswitch@media1a-pre.kazoo>