From Subtle Duck, 6 Years ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and PSAP chatplan
  1. freeswitch@media2a-pre.kazoo>
  2. recv 703 bytes from udp/[10.0.9.54]:5060 at 19:19:08.546166:
  3.    ------------------------------------------------------------------------
  4.    MESSAGE sip:+12134237680@gw.nga911.com:15060;transport=UDP SIP/2.0
  5.    Via: SIP/2.0/UDP 10.0.9.54;branch=z9hG4bK9746.88ab0fd201f6768669d79baab4123a65.0
  6.    Via: SIP/2.0/UDP 192.168.2.46:46852;received=91.224.133.8;branch=z9hG4bK-524287-1---9b0af2398a2e081e;rport=46852
  7.    Max-Forwards: 50
  8.    To: <sip:+12134237680@gw.nga911.com:15060;transport=UDP>
  9.    From: <sip:1002@gw.nga911.com:15060;transport=UDP>;tag=3410c241
  10.    Call-ID: lcl5qj9V1EJMr_LAZEGfVQ..
  11.    CSeq: 2 MESSAGE
  12.   Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
  13.    Content-Type: text/plain
  14.    User-Agent: Zoiper rd82a609
  15.    Allow-Events: presence, kpml, talk
  16.    Content-Length: 6
  17.    X-AUTH-IP: 91.224.133.8
  18.    X-AUTH-PORT: 46852
  19.    
  20.    Llllll
  21.  
  22.    ------------------------------------------------------------------------
  23. 2018-01-11 19:19:08.532701 [INFO] mod_sms.c:368 Processing text message 1002->+12134237680 in context e911
  24. Chatplan: +12134237680 parsing [e911->sms2im-integration-test] continue=false
  25. Chatplan: +12134237680@gw.nga911.com Regex (PASS) [sms2im-integration-test] destination_number() =~ /^(.*)$/ break=on-false
  26. Chatplan: +12134237680@gw.nga911.com Action set(sip_h_X-ecallmgr_Account-ID=30ec2ee9ad51c5d8b43c45eafd4e113e)
  27. Chatplan: +12134237680@gw.nga911.com Action set(sip_h_X-ecallmgr_Authorizing-Type=device)
  28. Chatplan: +12134237680@gw.nga911.com Action set(sip_h_X-ecallmgr_Authorizing-ID=56e0be7ac06b6db19c4707aefe3526bf)
  29. Chatplan: +12134237680@gw.nga911.com Action set(sip_h_X-ecallmgr_Username=sms2im)
  30. Chatplan: +12134237680@gw.nga911.com Action set(sip_h_X-ecallmgr_Realm=office.nga911.com)
  31. Chatplan: +12134237680@gw.nga911.com Action set(sip_h_X-ecallmgr_Account-Realm=office.nga911.com)
  32. Chatplan: +12134237680@gw.nga911.com Action set(sip_h_X-ecallmgr_Account-Name=office.nga911.com)
  33. Chatplan: +12134237680@gw.nga911.com Action set(sip_h_X-ecallmgr_Presence-ID=sms2im@office.nga911.com)
  34. Chatplan: +12134237680@gw.nga911.com Action set(sip_profile=external)
  35. Chatplan: +12134237680@gw.nga911.com Action python(psap_recipient_resolve)
  36. 2018-01-11 19:19:08.532701 [NOTICE] mod_python.c:212 Invoking py module: psap_recipient_resolve
  37. 2018-01-11 19:19:08.532701 [DEBUG] mod_python.c:283 Call python script
  38. 2018-01-11 19:19:08.532701 [WARNING] switch_cpp.cpp:1365 PSAP URL: https://csp.nga911.com/routablePsapForTextOrInstantMessage?entryRouteId=12134237680&latitude=34.18&longitude=-118.46
  39. send 667 bytes to udp/[10.0.9.54]:5060 at 19:19:08.548830:
  40.    ------------------------------------------------------------------------
  41.    SIP/2.0 202 Accepted
  42.    Via: SIP/2.0/UDP 10.0.9.54;branch=z9hG4bK9746.88ab0fd201f6768669d79baab4123a65.0
  43.    Via: SIP/2.0/UDP 192.168.2.46:46852;received=91.224.133.8;branch=z9hG4bK-524287-1---9b0af2398a2e081e;rport=46852
  44.    From: <sip:1002@gw.nga911.com:15060;transport=UDP>;tag=3410c241
  45.    To: <sip:+12134237680@gw.nga911.com:15060;transport=UDP>;tag=SF5B7arKHByyj
  46.    Call-ID: lcl5qj9V1EJMr_LAZEGfVQ..
  47.    CSeq: 2 MESSAGE
  48.    Contact: <sip:10.0.9.50:12000>
  49.    User-Agent: FreeSWITCH-mod_sofia/1.6.19+git-20171224T074649Z~f858a27ad1~64bit
  50.   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
  51.    Supported: timer, path, replaces
  52.    Content-Length: 0
  53.    
  54.    ------------------------------------------------------------------------
  55. freeswitch@media2a-pre.kazoo>
  56. freeswitch@media2a-pre.kazoo>
  57. freeswitch@media2a-pre.kazoo>
  58. 2018-01-11 19:19:08.772740 [DEBUG] switch_cpp.cpp:1365 No JSON object could be decoded
  59. 2018-01-11 19:19:08.772740 [WARNING] switch_cpp.cpp:1365 PSAP Route: UNKNOWN
  60. 2018-01-11 19:19:08.772740 [DEBUG] mod_python.c:286 Finished calling python script
  61. 2018-01-11 19:19:08.772740 [ERR] mod_python.c:295 Error calling python script
  62. 2018-01-11 19:19:08.772740 [ERR] mod_python.c:164 Python Error by calling script "psap_recipient_resolve": <type 'exceptions.ValueError'>
  63. Message: need more than 1 value to unpack
  64. Exception: None
  65.  
  66. Traceback (most recent call last)
  67.         File: "/usr/lib/python2.7/dist-packages/psap_recipient_resolve.py", line 64, in chat
  68.         File: "/usr/lib/python2.7/dist-packages/psap_recipient_resolve.py", line 52, in update_old
  69. 2018-01-11 19:19:08.772740 [ERR] sofia_presence.c:155 Missing To: header.
  70. freeswitch@media2a-pre.kazoo>
  71. freeswitch@media2a-pre.kazoo>
  72. freeswitch@media2a-pre.kazoo>
  73. freeswitch@media2a-pre.kazoo>
  74. freeswitch@media2a-pre.kazoo>
  75.