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@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to