From Coral Tapir, 6 Years ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and SMS test2
  1. freeswitch@media2a-pre.kazoo>
  2. recv 706 bytes from udp/[10.0.9.54]:5060 at 22:38:13.635522:
  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=z9hG4bKa746.4ba6cc4abacc42d737a54a0c5b8dcdbd.0
  6.    Via: SIP/2.0/UDP 192.168.2.46:46852;received=91.224.133.8;branch=z9hG4bK-524287-1---0efa431c5a1b56ec;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: 3 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: 9
  17.    X-AUTH-IP: 91.224.133.8
  18.    X-AUTH-PORT: 46852
  19.    
  20.    Ffgghhjjj
  21.  
  22.    ------------------------------------------------------------------------
  23. 2018-01-11 22:38:13.621708 [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 22:38:13.621708 [NOTICE] mod_python.c:212 Invoking py module: psap_recipient_resolve
  37. send 667 bytes to udp/[10.0.9.54]:5060 at 22:38:13.637416:
  38.    ------------------------------------------------------------------------
  39.    SIP/2.0 202 Accepted
  40.    Via: SIP/2.0/UDP 10.0.9.54;branch=z9hG4bKa746.4ba6cc4abacc42d737a54a0c5b8dcdbd.0
  41.    Via: SIP/2.0/UDP 192.168.2.46:46852;received=91.224.133.8;branch=z9hG4bK-524287-1---0efa431c5a1b56ec;rport=46852
  42.    From: <sip:1002@gw.nga911.com:15060;transport=UDP>;tag=3410c241
  43.    To: <sip:+12134237680@gw.nga911.com:15060;transport=UDP>;tag=NaptX9gUXXm6g
  44.    Call-ID: lcl5qj9V1EJMr_LAZEGfVQ..
  45.    CSeq: 3 MESSAGE
  46.    Contact: <sip:10.0.9.50:12000>
  47.    User-Agent: FreeSWITCH-mod_sofia/1.6.19+git-20171224T074649Z~f858a27ad1~64bit
  48.   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
  49.    Supported: timer, path, replaces
  50.    Content-Length: 0
  51.    
  52.    ------------------------------------------------------------------------
  53. freeswitch@media2a-pre.kazoo>
  54. freeswitch@media2a-pre.kazoo>
  55. freeswitch@media2a-pre.kazoo>
  56. 2018-01-11 22:38:13.861727 [DEBUG] mod_python.c:283 Call python script
  57. 2018-01-11 22:38:13.861727 [WARNING] switch_cpp.cpp:1365 PSAP URL: https://csp.nga911.com/routablePsapForTextOrInstantMessage?latitude=34.18&longitude=-118.46&esinetEntryRoutePhoneNumber=12134237680
  58. freeswitch@media2a-pre.kazoo>
  59. freeswitch@media2a-pre.kazoo>
  60. freeswitch@media2a-pre.kazoo>
  61. freeswitch@media2a-pre.kazoo>
  62. freeswitch@media2a-pre.kazoo>
  63. freeswitch@media2a-pre.kazoo>
  64. freeswitch@media2a-pre.kazoo>
  65. freeswitch@media2a-pre.kazoo>
  66. 2018-01-11 22:38:14.521712 [DEBUG] switch_cpp.cpp:1365 'alertId'
  67. 2018-01-11 22:38:14.521712 [WARNING] switch_cpp.cpp:1365 PSAP Route: UNKNOWN
  68. 2018-01-11 22:38:14.521712 [DEBUG] mod_python.c:286 Finished calling python script
  69. 2018-01-11 22:38:14.521712 [ERR] mod_python.c:295 Error calling python script
  70. 2018-01-11 22:38:14.521712 [ERR] mod_python.c:164 Python Error by calling script "psap_recipient_resolve": <type 'exceptions.ValueError'>
  71. Message: need more than 1 value to unpack
  72. Exception: None
  73.  
  74. Traceback (most recent call last)
  75.         File: "/usr/lib/python2.7/dist-packages/psap_recipient_resolve.py", line 64, in chat
  76.         File: "/usr/lib/python2.7/dist-packages/psap_recipient_resolve.py", line 52, in update_old
  77. 2018-01-11 22:38:14.521712 [ERR] sofia_presence.c:155 Missing To: header.
  78. freeswitch@media2a-pre.kazoo>
  79. freeswitch@media2a-pre.kazoo>
  80. freeswitch@media2a-pre.kazoo>
  81. freeswitch@media2a-pre.kazoo>
  82. freeswitch@media2a-pre.kazoo>
  83. freeswitch@media2a-pre.kazoo>
  84.