[SIPForum-discussion] Regarding Contact header ABNF

Kevin P. Fleming kpfleming at digium.com
Fri Mar 2 19:14:11 UTC 2012


On 03/02/2012 05:02 AM, Amit Ranjan Sahu wrote:
> Hi All ,
>
>
> I have a doubt regarding the correct syntax of Contact header prepared
> by my sip application .
>
> The hedaer is
>
> Contact:<sip:14487000004 at 192.3.3.31:5060;+g.3gpp.cs-voice=+g.3gpp.cs-voice>;+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-service.ims.iari.rcse.im";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.AMIT.serviceLA";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.VF.serviceE";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-service.ims.iari.rcse.amit1234"
>
> I have doubt over the place of<   >   . ie -
> <sip:14487000004 at 192.3.3.31:5060;+g.3gpp.cs-voice=+g.3gpp.cs-voice>;
>
> is this correct or it should be
>
> Contact:<sip:14487000004 at 192.3.3.31:5060;+g.3gpp.cs-voice=+g.3gpp.cs-voice;+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-service.ims.iari.rcse.im";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.AMIT.serviceLA";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.VF.serviceE";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-service.ims.iari.rcse.amit1234">
>
> or
>
> Contact:<sip:14487000004 at 192.3.3.31:5060>;+g.3gpp.cs-voice=+g.3gpp.cs-voice;+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-service.ims.iari.rcse.im";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.AMIT.serviceLA";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.VF.serviceE";+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-service.ims.iari.rcse.amit1234"

All of these forms are compliant with RFC 3261. The determination of 
which one is 'correct' depends on the document(s) that describe all of 
these parameters you have included, which should define whether they are 
header parameters or URI parameters.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org



More information about the discussion mailing list