[sr-dev] How to get source and destination ip and port details in corex module
Olle E. Johansson
oej at edvina.net
Thu Jun 23 09:08:01 CEST 2016
> On 22 Jun 2016, at 13:22, Niraj <niraj.r at sabsebolo.com> wrote:
>
> Hi Olle,
> Yes I am talking about script language and also thinking of exporting required pseudo variables bringing necessary changes in c source code if not available.
> Also can I define any custom pseudo variables both in the script?
If you are talking about the script language the pseudo variables you are looking for exists and works if you load the
modules needed. CHeck the documentation in the cookbok and the PV module.
Questions about this is better handled on the sr-users mailing list. This is the source code development mailing list.
Cheers,
/O
>
> Thanks,
> Niraj
> On Wednesday 22 June 2016 03:49 PM, Olle E. Johansson wrote:
>>> On 21 Jun 2016, at 13:03, Niraj <niraj.r at sabsebolo.com> wrote:
>>>
>>> Hi Olle,
>>> Thanks for your reply. But I beg to differ that any other pseudo variable available in this module apart from $mb and msg_avp. I have already tried to use those variables but they all give <null> value.
>> I think we must be talking about two different things. I talk about the script language - are you talking about
>> C source code development?
>>
>> /O
>>> Thanks,
>>> Niraj
>>> On Tuesday 21 June 2016 04:23 PM, Olle E. Johansson wrote:
>>>>> On 21 Jun 2016, at 12:19, Niraj <niraj.r at sabsebolo.com> wrote:
>>>>>
>>>>> Hi,
>>>>> Corex module has only raw SIP message and no other pseudo variables available. Can anybody shade some light on how to get source and destination IP and port details for that particular SIP message?
>>>> I think you need to read through the pseudovariable cookbook
>>>> http://www.kamailio.org/wiki/cookbooks/4.4.x/pseudovariables
>>>>
>>>> You will find all you ask for and much more in that document!
>>>>
>>>> /O
>>>> _______________________________________________
>>>> sr-dev mailing list
>>>> sr-dev at lists.sip-router.org
>>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>>> --
>>> Thanks & Regards,
>>> Niraj Roy
>>> Mob: +91 9426554400
>>>
>
> --
> Thanks & Regards,
> Niraj Roy
> Mob: +91 9426554400
>
More information about the sr-dev
mailing list