Possible issue with From an To headers

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

 



Sorry, a small correction:

REGISTER

.

From: <sip:alice@domain>;tag=12345.

.

 

 

Rafael Maia

 

 

 

From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org]
On Behalf Of Rafael Maia
Sent: sexta-feira, 10 de Dezembro de 2010 14:57
To: 'pjsip list'
Subject: Possible issue with From an To headers

 

Hi all,

I noticed that the From an To headers of the INVITES are not contained in
the '<' and '>' char, but in the REGISTER they are.

For example:

INVITE

.

From: sip:myself@domain;tag=122435....

To: sip:alice at domain;tag=233564...

.

 

REGISTER

.

From: sip:myself@domain;tag=123354...

.

 

>From what I have read in the RFC 3261 it seems the correct way is with the
'<' and '>' char.

I changed the sip_dialog.c to add the '<' and '>'.

Function pjsip_dlg_create_uac:

.

dlg->local.info->uri = pjsip_parse_uri(dlg->pool, dlg->local.info_str.ptr,
dlg->local.info_str.slen, PJSIP_PARSE_URI_AS_NAMEADDR);

.

dlg->remote.info->uri = pjsip_parse_uri(dlg->pool, dlg->remote.info_str.ptr,
dlg->remote.info_str.slen, PJSIP_PARSE_URI_AS_NAMEADDR);

.

 

Can anyone please confirm if this is the correct way?

 

Cheers,

Rafael Maia

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101210/77b394e0/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