Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 SIP content ID help
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.

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
2019/03/13 08:59:39.485790 -> NOTIFY sip:204@ SIP/2.0 Event: check-sync Content-Length: 0 Via: SIP/2.0/UDP;branch=z9hG4bK001b84f6;rport From: "Unknown" <sip:Unknown@>;tag=as2e95fad1 Subscription-State: terminated Supported: replaces,timer Content-Id: = 123456789 To: <sip:204@> Contact: <sip:Unknown@> CSeq: 102 NOTIFY Max-Forwards: 70 Call-ID: Unknown@ 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

2019/03/13 09:14:05.986088 -> NOTIFY sip:204@ SIP/2.0 Via: SIP/2.0/UDP;branch=z9hG4bK7961d701 Max-Forwards: 70 From: "Unknown" <sip:Unknown@>;tag=as134afd4b To: <sip:204@> Contact: <sip:Unknown@> Call-ID: 024c12660e1f6d4d4cd32a264eb0e329@ CSeq: 102 NOTIFY User-Agent: FPBX- 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

Top Page

Forum Jump:

Users browsing this thread: 1 Guest(s)