[OpenSIPS-Users] handle_publish wrong destination

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jan 3 13:16:41 EST 2019


The RURI/To/From are correlated with the presentity URI (you want to 
publish).

I guess you use dialoginfo_set() in your script ? Do it before 
lookup(location), to learn the AOR and not the contact of the callee. 
Or, use the caller_spec_param and callee_spec_param to construct your 
own presentities

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 01/03/2019 07:28 PM, Schneur Rosenberg wrote:
> Ok, now its sending the PUBLISH to the proper place, but the RURI, To,
> FROM all have the ip of the phone after the @ instead of having the
> DOMAIN that it registered as, how do I change it?
>
> On Thu, Jan 3, 2019 at 7:20 PM Schneur Rosenberg
> <rosenberg11219 at gmail.com> wrote:
>> I just realized that I was missing modparam("pua_dialoginfo",
>> "presence_server", "sip:xxx.xxx.xxx.xxx:5060") I will test with it now
>>
>> On Thu, Jan 3, 2019 at 7:10 PM Schneur Rosenberg
>> <rosenberg11219 at gmail.com> wrote:
>>> Sorry for not being clear, the PUBLISH goes to the address of the
>>> SUBSCRIBER, no NOTIFY gets sent out because the presence server which
>>> is itself never gets notified of the state change, the server address
>>> is set in OpenSIPS as  modparam("presence", "server_address",
>>> "sip:xxx.xxx.xxx.xxx:5060") (address masked
>>>
>>> On Thu, Jan 3, 2019 at 5:43 PM Bogdan-Andrei Iancu <bogdan at opensips.org> wrote:
>>>> Schneur,
>>>>
>>>> There is a bit of a confusion in what you are saying. In your original post you mentioned " but on incoming calls the PUBLISH is sent to the internal IP address of the subscribers " . Maybe you meant NOTIFYes ? these are the only requests sent back by OpenSIPS to the subscriber.
>>>> PUBLISH requests are generated by the pua_xxxx (like pua_dialoginfo) modules and consumed by the presence module (via the handle_publish). And when handling the publish, OpenSIPS is generating and sending out the NOTIFYes.
>>>>
>>>> So which ones are you complaining about ?
>>>>
>>>> Just for the fact, the PUBLISHes generated by pua_dialoginfo are sent to the fix destination give by the "presence_server" module parameter.
>>>>
>>>> Regards,
>>>>
>>>> Bogdan-Andrei Iancu
>>>>
>>>> OpenSIPS Founder and Developer
>>>>    https://www.opensips-solutions.com
>>>> OpenSIPS Summit 2019
>>>>    https://www.opensips.org/events/Summit-2019Amsterdam/
>>>>
>>>> On 01/03/2019 03:04 PM, Schneur Rosenberg wrote:
>>>>
>>>> The publish goes to the internal address of the subscribers, instead of going to itself, it goes nowhere and no NOTIFY is ever sent, here is a sample PUBLISH
>>>>
>>>> PUBLISH sip:mysipuser at 192.168.1.2:5060 SIP/2.0
>>>> Via: SIP/2.0/UDP 81.18.5.78:5060;branch=z9hG4bKf248.d893da14.0
>>>> To: sip:mysipuser at 192.168.1.2:5060
>>>> From: <sip:mysipuser at 192.168.1.2:5060>;tag=fcab47ce4481840ab954c8dc7f9d517f-9b26
>>>> CSeq: 10 PUBLISH
>>>> Call-ID: 68b929aa6f905336-24591 at 81.18.5.78
>>>> Max-Forwards: 70
>>>> Content-Length: 592
>>>> User-Agent: OpenSIPS (2.4.1 (x86_64/linux))
>>>> Event: dialog
>>>> Expires: 43201
>>>> Content-Type: application/dialog-info+xml
>>>>
>>>> <?xml version="1.0"?>
>>>> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" state="partial" entity="sip:mysipuser at 192.168.1.2:5060"><dialog id="532c2f370f16667850aa092440c55325 at 66.36.230.75
>>>> 060" call-id="532c2f370f16667850aa092440c55325 at 81.18.5.80:5060" local-tag="425302105" remote-tag="as4b8896ec" direction="recipient"><state>early</state><remote><ident
>>>> y>sip:2125551010 at 81.18.5.80</identity><target uri="sip:2125551010 at 81.18.5.80"/></remote><local><identity>sip:mysipuser at 192.168.1.2:5060</identity><target uri="si
>>>> mysipuser at 192.168.1.2:5060"/></local></dialog></dialog-info>
>>>>
>>>>
>>>> On Thu, Jan 3, 2019, 1:58 PM Bogdan-Andrei Iancu <bogdan at opensips.org wrote:
>>>>> Hi Schneur,
>>>>>
>>>>> For the incoming calls, the PUBLISH is sent to the internal IP address
>>>>> or the NOTIFYes ??
>>>>>
>>>>> Regards and A Happy New Year,
>>>>>
>>>>> Bogdan-Andrei Iancu
>>>>>
>>>>> OpenSIPS Founder and Developer
>>>>>     https://www.opensips-solutions.com
>>>>> OpenSIPS Summit 2019
>>>>>     https://www.opensips.org/events/Summit-2019Amsterdam/
>>>>>
>>>>> On 12/23/2018 08:37 AM, Schneur Rosenberg wrote:
>>>>>> HI, my presence was working properly and now I realized that its not
>>>>>> working anymore for incoming calls, I dont have a external presence
>>>>>> server, I use the pua_dialoginfo, I did a trace and I saw that for
>>>>>> outgoing calls the system sends a PUBLISH to itself and then properly
>>>>>> sends a NOTIFY to the subscribers, but on incoming calls the PUBLISH
>>>>>> is sent to the internal IP address of the subscribers and of course
>>>>>> does not get anywhere, what am I doing wrong?
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users at lists.opensips.org
>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list