From Insensitive Parrot, 6 Years ago, written in FreeSWITCH.
- view diff
Embed
  1.    ------------------------------------------------------------------------
  2. recv 302 bytes from udp/[10.0.9.56]:31313 at 16:03:54.582164:
  3.    ------------------------------------------------------------------------
  4.    MESSAGE sip:+12134237680@office.nga911.com SIP/2.0
  5.    Via: SIP/2.0/UDP 10.0.9.56:31313
  6.    From: <sip:+12139054794@office.nga911.com>
  7.    To: <sip:+12134237680@office.nga911.com>
  8.    CSeq: 12 MESSAGE
  9.    Content-Type: text/plain
  10.    Content-Length: 17
  11.    Call-ID: 0dc45511-a216-4061-b57d-bf8eb2de2256
  12.    
  13.    Hello Don! Sergey
  14.  
  15.    ------------------------------------------------------------------------
  16. 2018-01-12 16:03:54.574491 [INFO] mod_sms.c:368 Processing text message +12139054794->+12134237680 in context e911
  17. Chatplan: +12134237680 parsing [e911->sms2im-integration-test] continue=false
  18. Chatplan: +12134237680@office.nga911.com Regex (PASS) [sms2im-integration-test] destination_number() =~ /^(.*)$/ break=on-false
  19. Chatplan: +12134237680@office.nga911.com Action set(sip_h_X-ecallmgr_Account-ID=30ec2ee9ad51c5d8b43c45eafd4e113e)
  20. Chatplan: +12134237680@office.nga911.com Action set(sip_h_X-ecallmgr_Authorizing-Type=device)
  21. Chatplan: +12134237680@office.nga911.com Action set(sip_h_X-ecallmgr_Authorizing-ID=56e0be7ac06b6db19c4707aefe3526bf)
  22. Chatplan: +12134237680@office.nga911.com Action set(sip_h_X-ecallmgr_Username=sms2im)
  23. Chatplan: +12134237680@office.nga911.com Action set(sip_h_X-ecallmgr_Realm=office.nga911.com)
  24. Chatplan: +12134237680@office.nga911.com Action set(sip_h_X-ecallmgr_Account-Realm=office.nga911.com)
  25. Chatplan: +12134237680@office.nga911.com Action set(sip_h_X-ecallmgr_Account-Name=office.nga911.com)
  26. Chatplan: +12134237680@office.nga911.com Action set(sip_h_X-ecallmgr_Presence-ID=sms2im@office.nga911.com)
  27. Chatplan: +12134237680@office.nga911.com Action set(sip_profile=external)
  28. Chatplan: +12134237680@office.nga911.com Action python(psap_recipient_resolve)
  29. 2018-01-12 16:03:54.574491 [NOTICE] mod_python.c:212 Invoking py module: psap_recipient_resolve
  30. send 481 bytes to udp/[10.0.9.56]:31313 at 16:03:54.583977:
  31.    ------------------------------------------------------------------------
  32.    SIP/2.0 202 Accepted
  33.    Via: SIP/2.0/UDP 10.0.9.56:31313
  34.    From: <sip:+12139054794@office.nga911.com>
  35.    To: <sip:+12134237680@office.nga911.com>;tag=ZZHDt2aQ1y70a
  36.    Call-ID: 0dc45511-a216-4061-b57d-bf8eb2de2256
  37.    CSeq: 12 MESSAGE
  38.    Contact: <sip:10.0.9.48:12000>
  39.    User-Agent: FreeSWITCH-mod_sofia/1.6.19+git-20171224T074649Z~f858a27ad1~64bit
  40.   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
  41.    Supported: timer, path, replaces
  42.    Content-Length: 0
  43.    
  44.    ------------------------------------------------------------------------
  45. 2018-01-12 16:03:54.834477 [DEBUG] mod_python.c:283 Call python script
  46. 2018-01-12 16:03:54.834477 [WARNING] switch_cpp.cpp:1365 PSAP URL: https://csp.nga911.com/routablePsapForTextOrInstantMessage?latitude=34.18&longitude=-118.46&esinetEntryRoutePhoneNumber=%2B12139054794
  47. 2018-01-12 16:03:55.354487 [DEBUG] switch_cpp.cpp:1365 No JSON object could be decoded
  48. 2018-01-12 16:03:55.354487 [WARNING] switch_cpp.cpp:1365 PSAP Route: UNKNOWN
  49. 2018-01-12 16:03:55.354487 [DEBUG] mod_python.c:286 Finished calling python script
  50. 2018-01-12 16:03:55.354487 [ERR] mod_python.c:295 Error calling python script
  51. 2018-01-12 16:03:55.354487 [ERR] mod_python.c:164 Python Error by calling script "psap_recipient_resolve": <type 'exceptions.ValueError'>
  52. Message: need more than 1 value to unpack
  53. Exception: None
  54.  
  55. Traceback (most recent call last)
  56.         File: "/usr/lib/python2.7/dist-packages/psap_recipient_resolve.py", line 64, in chat
  57.         File: "/usr/lib/python2.7/dist-packages/psap_recipient_resolve.py", line 52, in update_old
  58. 2018-01-12 16:03:55.354487 [ERR] sofia_presence.c:155 Missing To: header.
  59.