[SIP Beyond VoIP] Port in To header
Saúl Ibarra Corretgé
saul at ag-projects.com
Wed Feb 13 21:58:29 CET 2013
On Feb 13, 2013, at 6:01 PM, Ciprian Hacman wrote:
> Hello all,
>
> I am trying to use sip simple to subscribe to an BLA/SLA server.
> The SIP message looks like this (from a Polycom phone):
> SUBSCRIBE sip:192.168.123.200:5170;x-sipX-nonat SIP/2.0
> Via: SIP/2.0/UDP 192.168.123.202;branch=z9hG4bK8cc585c36CA6B074
> From: "John Smith" <sip:202 at ezuce.ro>;tag=9F64CACA-5C54C13B
>> To: <sip:192.168.123.200:5170;x-sipX-nonat>
> CSeq: 1 SUBSCRIBE
> Call-ID: 7d5e4d65-7de6c96-57fd1e07 at 192.168.123.202
> Contact: <sip:202 at 192.168.123.202>
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER
> Event: dialog;sla
> User-Agent: PolycomVVX-VVX_500-UA/4.0.3.7562
> Accept-Language: en
> Accept: application/dialog-info+xml
> Max-Forwards: 70
> Expires: 3326
> Content-Length: 0
>
> The "To" header contains an IP and a port.
> Sipsimple uses ToHeader() to pare and URI and the result I see in the SUBSCRIBE message does not contain the port anymore.
>
> Is there a way to send a message that also contains the port in the To header?
>
Usage of ports in From / To headers is discouraged and thus not supported by SIP SIMPLE SDK. You should use a domain name instead.
--
Saúl Ibarra Corretgé
AG Projects
More information about the SIPBeyondVoIP
mailing list