[SR-Users] MSILO add on deliver event route still no joy

Roberto Fichera kernel at tekno-soft.it
Mon Jun 9 18:03:39 CEST 2014


On 06/09/2014 05:49 PM, Daniel-Constantin Mierla wrote:
> Hello,

Hi,

> On 09/06/14 17:41, Roberto Fichera wrote:
>> [...]
>>
>>> your patch seems a bit to complex -- I didn't figure out why you store the message in pkg memory.
>>
>> Ok! So I will need to shm_malloc() the memory in such case, right?
> I don't get why you need to do that at all. If you need to access from, to, etc..., you can get them from the SIP
> response. You go in dangerous zone as you do that cloning.

The idea was to set a sip_msg just to have all the pseudo-variable available
within the event route and nothing else.

> Because you want to execute the event route on 200ok, the best is to run the event route with the SIP response structure.

At the beginning this was my choice, but I'd always got ps->req = NULL in the callback tmcb_params
hence the event route wasn't executed. But I'll re-try it just to be sure.

BTW! using shm_malloc() I was finally able to execute the event route in the script with all the
pseudo-variable correctly set!

Cheers,
Roberto Fichera.

>
> Cheers,
> Daniel
> -- 
> Daniel-Constantin Mierla - http://www.asipto.com
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140609/a01cd096/attachment.html>


More information about the sr-users mailing list