Ralf,

You have a trailing <"> at the end of the command:

try
/usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY "sip:[email protected]" . . "\"From: sip:[email protected]\r\nTo: sip:[email protected]\r\nContent-Type: application/simservs+xml\r\n"\" '<?xml version='\"

Instead of:
/usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY "sip:[email protected]" . . "\"From: sip:[email protected]\r\nTo: sip:[email protected]\r\nContent-Type: application/simservs+xml\r\n"\" '<?xml version='

In this case, the body you set is "<?xml version="


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 21.08.2015 16:36, Ralf Neumann wrote:
/usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY "sip:[email protected]" . . 
"\"From: sip:[email protected]\r\nTo: sip:[email protected]\r\nContent-Type: 
application/simservs+xml\r\n"\" '<?xml version='\"
400 parse error in command 't_uac_dlg'


Gesendet: Freitag, 21. August 2015 um 13:59 Uhr
Von: "Bogdan-Andrei Iancu" <[email protected]>
An: "OpenSIPS users mailling list" <[email protected]>, 
[email protected]
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
Hi Ralf,

Could you post the exact command (from shell) you send together with the
opensips error log please.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 21.08.2015 09:59, Ralf Neumann wrote:
not caused by the syntax. The command accept the following syntax:
'<?xml version='\a and send as <?xml version=a in packet
After modification to '<?xml version='\" the result is Error 400 parse error in 
command 't_uac_dlg'
It seems the character " was not accepted.

Gesendet: Donnerstag, 20. August 2015 um 17:37 Uhr
Von: "Podrigal, Aron" <[email protected]>
An: "OpenSIPS users mailling list" <[email protected]>
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
are u sure about the syntax errors not caused by your shell?

On Aug 20, 2015 11:10 AM, "Ralf_Neumann_hgw" <[email protected]> wrote:Hi 
Bogdan,

the NOTIFY is used to switch on/off different services (warmline/hotline) on
the SIP client.
I get syntax errors if i use the characters like <;>;";?

What is your recommendation?

Ralf

-----Ursprüngliche Nachricht-----
Von: [email protected][[email protected]]
[mailto:[email protected][[email protected]]] Im 
Auftrag von Bogdan-Andrei Iancu
Gesendet: Donnerstag, 20. August 2015 16:45
An: OpenSIPS users mailling list; 
[email protected][[email protected]]
Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax

Hi Ralf,

Body can be anything. The question is what you want to use the NOTIFY for ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com[http://www.opensips-solutions.com][http://www.opensips-solutions.com[http://www.opensips-solutions.com]]

On 20.08.2015 16:01, Ralf Neumann wrote:
The command "opensipsctl fifo t_uac_dlg ..." send the NOTIFY to the client
as expected. I need support regarding the implementation of the body in the
NOTIFY packet based on xml. Is here anybody with knowledge of the needed
syntax or workaround.
opensipsctl fifo t_uac_dlg NOTIFY 
"sip:[email protected][sip%[email protected]]" . .
"\"From: sip:[email protected][sip%[email protected]]\r\nTo:
sip:[email protected][sip%[email protected]]\r\nContent-Type:
application/simservs+xml\r\n"\" thebody

Body of SIP NOTIFY:
<?xml version="1.0" encoding="UTF-8"?> <simservs> <hot-line-service>
</hot-line-service> </simservs>

Thanks
Ralf

_______________________________________________
Users mailing list
[email protected][[email protected]]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users][http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users]]


_______________________________________________
Users mailing list
[email protected][[email protected]]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users]


_______________________________________________
Users mailing list
[email protected][[email protected]]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users_______________________________________________[http://lists.opensips.org/cgi-bin/mailman/listinfo/users_______________________________________________]
 Users mailing list [email protected] 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users][http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users]]

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users]

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users[http://lists.opensips.org/cgi-bin/mailman/listinfo/users]

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to