Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SIP content ID help
#1
I am trying to use SIPPing to send SIP commands to my phones. It uses txt files as templates for the messages. I am trying to send a check-sync commend to the phones. They need some kind of content sent to make them reboot and sync. I also want to send the URI for the server to give them their provisioning files. Here is the template I am using for SIPPing.

Output:
NOTIFY sip:204@%(dest_ip)s SIP/2.0 Via: SIP/2.0/UDP %(source_ip)s:%(source_port)s;branch=z9hG4bK001b84f6;rport Max-Forwards: 70 From: "Unknown" <sip:Unknown@%(source_ip)s>;tag=as2e95fad1 To: <sip:204@%(dest_ip)s:%(dest_port)s> Contact: <sip:Unknown@%(source_ip)s:%(source_port)s> CSeq: 102 NOTIFY Call-ID: Unknown@%(source_ip)s Event: check-sync Content-Type: application/url Content-ID: = 123456789 Content-Length: 0 User-Agent: Nimbus Subscription-State: terminated Supported: replaces,timer Allow-Events: INVITE ,ACK ,CANCEL ,OPTIONS , BYE ,REFER , SUBSCRIBE ,NOTIFY ,INFO , PUBLISH
Here is actually what gets sent
Output:
2019/03/13 08:59:39.485790 192.168.10.20:5061 -> 192.168.10.142:5060 NOTIFY sip:204@192.168.10.142 SIP/2.0 Event: check-sync Content-Length: 0 Via: SIP/2.0/UDP 192.168.10.20:5061;branch=z9hG4bK001b84f6;rport From: "Unknown" <sip:Unknown@192.168.10.20>;tag=as2e95fad1 Subscription-State: terminated Supported: replaces,timer Content-Id: = 123456789 To: <sip:204@192.168.10.142:5060> Contact: <sip:Unknown@192.168.10.20:5061> CSeq: 102 NOTIFY Max-Forwards: 70 Call-ID: Unknown@192.168.10.20 User-Agent: Nimbus Content-Type: application/url Allow-Events: INVITE ,ACK ,CANCEL ,OPTIONS , BYE ,REFER , SUBSCRIBE ,NOTIFY ,INF , PUBLISH
This message worked the way I need it, It was sent from my phone system

Output:
2019/03/13 09:14:05.986088 192.168.10.20:5060 -> 192.168.10.142:5060 NOTIFY sip:204@192.168.10.142:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.10.20:5060;branch=z9hG4bK7961d701 Max-Forwards: 70 From: "Unknown" <sip:Unknown@192.168.10.20>;tag=as134afd4b To: <sip:204@192.168.10.142:5060> Contact: <sip:Unknown@192.168.10.20:5060> Call-ID: 024c12660e1f6d4d4cd32a264eb0e329@192.168.10.20:5060 CSeq: 102 NOTIFY User-Agent: FPBX-14.0.5.25(13.22.0) Date: Wed, 13 Mar 2019 13:14:05 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Subscription-State: terminated Event: check-sync Content-Type: application/url Content-Length: 12
Any ideas what I am doing wrong here??
Larz60+ wrote Mar-13-2019, 01:47 PM:
icode doesn't do what you want, it's for inline code, use output tags instead

Fixed for you this time
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)