[OpenSIPS-Users] Call external program from reply_rote
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Oct 28 11:40:16 CET 2014
Hi Gary,
It seems the exec() functions to expect to receive and parse a SIP
requests after all. I can try to prepare a patch to have them working
for replies too.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 23.10.2014 02:06, Gary Nyquist wrote:
> Hi Bogdan,
>
> As I said, it works; but the following errors/warnings fill up the logs:
>
> ERROR:core:parse_uri: uri too short: <200> (3)
> WARNING:exec:append_fixed_vars: uri not parsed
> ERROR:core:parse_uri: uri too short: <200> (3)
> WARNING:exec:append_fixed_vars: orig URI not parsed
>
> Each "200 OK" reply logging above 4 lines.
> Any clues how to get rid of these logs?
>
> Best Regards,
> - Gary
>
>
>
>
>
>
> Thanks Bogdan for the tips.
>
> It works!
>
> Best Regards,
> - Gary
>
>
>> Sent: Tuesday, October 21, 2014 at 2:46 PM
>> From: "Bogdan-Andrei Iancu" <bogdan at opensips.org>
>> To: "OpenSIPS users mailling list" <users at lists.opensips.org>, gn62 at gmx.us
>> Subject: Re: [OpenSIPS-Users] Call external program from reply_rote
>>
>> Hi Gary,
>>
>> You can do an ugly trick like:
>>
>> route[EXEC] {
>> exec(....);
>> }
>>
>> onreply_route[...] {
>> ....
>> route(EXEC);
>> ....
>> }
>>
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>> On 21.10.2014 00:56, Gary Nyquist wrote:
>>> Hi,
>>>
>>> I need to call an external program from the REPLY_ROUTE (on getting 200 OK).
>>> As per the doc, "exec_msg" and "exec_avp" can be used from REQUEST_ROUTE & FAILURE_ROUTE only.
>>> Is there any alternative methods to run external programs from the REPLY_ROUTE?
>>>
>>> Best Regards,
>>> - Gary
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
More information about the Users
mailing list