Closed GoogleCodeExporter closed 9 years ago
Here is the ABNF for From header:
http://www.tech-invite.com/Ti-abnf-sip-hf.html#From
Don't confuse "name-addr" and "addr-spec" (a.k.a sip uri). A Sip URI
(http://www.tech-invite.com/Ti-abnf-sip.html#sipuri) NEVER takes a display
name. In iOSNgnStack we use "callAudioVideo()" and "callAudio()" C++ function
to make calls. Both functions accept to kind of parameters: a string or a
SipUri object. By default we always use the override taking a string
(http://code.google.com/p/idoubs/source/browse/branches/2.0/common-ngn-stack/sip
/NgnAVSession.mm#224). The string is an "addr-spec" and ' "idoubs"
<sip:1000@idoubs.com> ' is not valid. What you want is the second override
which take a SipUri object which will be serialized as a "name-addr".
SipUri uri("sip:1000@idoubs.com", "idoubs");
_mSession->callAudio(&uri);
Original comment by boss...@yahoo.fr
on 13 Dec 2011 at 4:38
Additional info: The code above will set a display name to the remote party Uri
(To:).
As you may expect, you can do the same for the From: header by using a SipUri
object when setting the Uri (e.g.
http://code.google.com/p/idoubs/source/browse/branches/2.0/common-ngn-stack/sip/
NgnSipSession.mm#112) instead of a String.
Original comment by boss...@yahoo.fr
on 13 Dec 2011 at 4:49
what is the solution for this problem? I did not understand from above answers.
sorry
Original comment by mr3li.al...@gmail.com
on 10 Mar 2013 at 4:40
Original issue reported on code.google.com by
jimapple...@gmail.com
on 10 Dec 2011 at 2:39