PJSIP Entity domain instead of IP

Hi All,

Is there any way to set domain name instead of IP address in the following Notify Message:

<?xml version="1.0" encoding="UTF-8"?>

<dialog-info xmlns=“urn:ietf:params:xml:ns:dialog-info” version=“0” state=“full” entity=“sip:10000210@”>
<dialog id=“10000210”>

to something like:

<?xml version="1.0" encoding="UTF-8"?>

<dialog-info xmlns=“urn:ietf:params:xml:ns:dialog-info” version=“0” state=“full” entity=“sip:10000210@mydomain.com:5060”>
<dialog id=“10000210”>

That is not currently possible.

Hi, Thank’s for reply.
But as you can see in this issue the entity have domain instead of ip:

NOTIFY \sip:umfodx@ SIP/2.0
CSeq: 102 NOTIFY
Via: SIP/2.0/UDP;branch=z9hG4bK1ebf2f30;rport
User-Agent: XiVO PBX
From: <\sip:1002@xivo.xyz.fr>;tag=as7426eebf
Call-ID: e47b9d51-8f0c-1910-8da2-080027f515ee@Windows7-PC
To: <\sip:umfodx@xivo.xyz.fr>;tag=1b7f9d51-8f0c-1910-8da4-080027f515ee
Contact: <\sip:1002@>
Subscription-State: active
Event: presence
Content-Type: application/pidf+xml
Content-Length: 499
Max-Forwards: 70

<?xml version=“1.0” encoding=“ISO-8859-1”?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
<tuple id=“1002”>
<contact priority=“1”>\sip:1002@xivo.xyz.fr

so, i just wonder is this because of Asterisk version, or something wrong in configuration.
Thank You.

I’m using Asterisk 13.13

Which channel driver are you using? The chan_sip or the chan_pjsip one? They both may have different behavior.

Curently i’m using pjsip.

The issue you mentioned is in regards to chan_sip, which is a separate implementation and as I said may have different behavior.

ok, Thank You
Waiting for this feature for pjsip channel. :frowning: or swapping back to channel_sip.