SIP URI with uri-parameter and header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi List,
I want the SIP URI that I use for a call to contain some parameter and a
header.
I have make a test with this SIP URI, (the uri parameter and header are
irrelevant):

sip:test at 192.168.13.66>;method=REGISTER?to=alice%40atlanta.com

But I get this error:

ERROR: 11:57:29.803 sip_transport. !Error processing 370 bytes packet from
UDP 192.168.13.115:5060 : PJSIP syntax error exception when parsing ' '
header on line 4 col 45:
OPTIONS sip:test at 192.168.13.66 SIP/2.0^M
Via: SIP/2.0/UDP 192.168.13.115:5060;rport;branch=z9hG4bK2058690507^M
From: <sip:373@192.168.13.192>;tag=704541626^M
To: <sip:test at 192.168.13.66>;method=REGISTER?to=alice%40atlanta.com^M
Call-ID: 687795537^M
CSeq: 20 OPTIONS^M
Accept: application/sdp^M
Max-Forwards: 70^M
User-Agent: Linphone/3.5.2 (eXosip2/3.3.0)^M
Content-Length: 0^M
^M

The syntax error is in the '?' of the 'To:' line.

I have try to make a call using parameter and header separatedly:

First with : sip:test at 192.168.13.66>;method=REGISTER
and the with: test at 192.168.13.66?to=alice%40atlanta.com

And there is no syntax error, so it seems to me like it is  not possible to
add a uri parameter and a header in the same SIP URI. Is that true?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141210/af07db83/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux