[OpenSIPS-Users] fifo t_uac_dlg syntax

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Aug 24 18:49:48 CEST 2015


Hi Ralf,

Try this magic line (also thanks to Liviu for his shell expertise):

opensipsctl fifo t_uac_dlg NOTIFY "sip:3003 at 193.144.1.112" . . "\"From: 
sip:3001 at 192.180.1.107\r\nTo: sip:3003 at 193.144.1.112\r\nContent-Type: 
application/simservs+xml\r\n\"" '"<?xml version=\\"1.0\\" 
encoding=\\"UTF-8\\"?> <simservs> <hot-line-service></hot-line-service> 
</simservs>"'

Regards,

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

On 21.08.2015 20:57, Ralf_Neumann_hgw wrote:
> Yes, it works until the character <=> because it does not contains the <">
>
> The body should looks like...
> <?xml version="1.0" encoding="utf-8"?>
>
> -----Ursprüngliche Nachricht-----
> Von: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] Im Auftrag von Bogdan-Andrei Iancu
> Gesendet: Freitag, 21. August 2015 16:36
> An: OpenSIPS users mailling list; ralf_neumann_hgw at web.de
> Betreff: Re: [OpenSIPS-Users] fifo t_uac_dlg syntax
>
> Ralf,
>
> You have a trailing <"> at the end of the command:
>
> try
> /usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY "sip:3003 at 193.144.1.112" . . "\"From: sip:3001 at 192.180.1.107\r\nTo:
> sip:3003 at 193.144.1.112\r\nContent-Type: application/simservs+xml\r\n"\"
> '<?xml version='\"
>
> Instead of:
> /usr/local/opensips_proxy/sbin/opensipsctl fifo t_uac_dlg NOTIFY "sip:3003 at 193.144.1.112" . . "\"From: sip:3001 at 192.180.1.107\r\nTo:
> sip:3003 at 193.144.1.112\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:3003 at 193.144.1.112" . . "\"From: sip:3001 at 192.180.1.107\r\nTo: sip:3003 at 193.144.1.112\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" <bogdan at opensips.org>
>> An: "OpenSIPS users mailling list" <users at lists.opensips.org>,
>> ralf_neumann_hgw at web.de
>> 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" <aronp at guaranteedplus.com>
>>> An: "OpenSIPS users mailling list" <users at lists.opensips.org>
>>> 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"
>>> <Ralf_Neumann_hgw at web.de> 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:
>>> users-bounces at lists.opensips.org[users-bounces at lists.opensips.org]
>>> [mailto:users-bounces at lists.opensips.org[users-bounces at lists.opensips
>>> .org]] Im Auftrag von Bogdan-Andrei Iancu
>>> Gesendet: Donnerstag, 20. August 2015 16:45
>>> An: OpenSIPS users mailling list;
>>> ralf_neumann_hgw at web.de[ralf_neumann_hgw at web.de]
>>> 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:3003 at 193.144.1.112[sip%3A3003 at 193.144.1.112]" . .
>>>> "\"From: sip:3001 at 192.180.1.107[sip%3A3001 at 192.180.1.107]\r\nTo:
>>>> sip:3003 at 193.144.1.112[sip%3A3003 at 193.144.1.112]\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
>>>>
>




More information about the Users mailing list