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 sentOutput:2019/03/13 08:59:39.485790 192.168.10.20:5061 -> 192.168.10.142:5060
NOTIFY sip:[email protected] 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:[email protected]>;tag=as2e95fad1
Subscription-State: terminated
Supported: replaces,timer
Content-Id: = 123456789
To: <sip:[email protected]:5060>
Contact: <sip:[email protected]:5061>
CSeq: 102 NOTIFY
Max-Forwards: 70
Call-ID: [email protected]
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 systemOutput:2019/03/13 09:14:05.986088 192.168.10.20:5060 -> 192.168.10.142:5060
NOTIFY sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.10.20:5060;branch=z9hG4bK7961d701
Max-Forwards: 70
From: "Unknown" <sip:[email protected]>;tag=as134afd4b
To: <sip:[email protected]:5060>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]: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??