PJSIP Entity domain instead of IP


#1

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@192.168.1.1:5060”>
<dialog id=“10000210”>
<state>terminated
</dialog>
</dialog-info>

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”>
<state>terminated
</dialog>
</dialog-info>


#2

That is not currently possible.


#3

Hi, Thank’s for reply.
But as you can see in this issue the entity have domain instead of ip:
https://issues.asterisk.org/jira/browse/ASTERISK-23731

NOTIFY \sip:umfodx@157.163.3.246 SIP/2.0
CSeq: 102 NOTIFY
Via: SIP/2.0/UDP 157.163.1.45:5060;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@157.163.1.45:5060>
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"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep=“urn:ietf:params:xml:ns:pidf:rpid:rpid-person”
\entity=“sip:umfodx@xivo.xyz.fr”>
<pp:person>
</status></pp:person>
<note>Ready
<tuple id=“1002”>
<contact priority=“1”>\sip:1002@xivo.xyz.fr
<status>open
</tuple>
</presence>

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

I’m using Asterisk 13.13


#4

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


#5

Curently i’m using pjsip.


#6

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


#7

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