[OpenSIPS-Users] Call external program from reply_rote

Gary Nyquist gn62 at gmx.us
Wed Oct 29 22:26:45 CET 2014


Thanks a ton Răzvan.

It did the trick.

Best Regards,
- Gary


> Sent: Tuesday, October 28, 2014 at 1:52 PM
> From: "Răzvan Crainea" <razvan at opensips.org>
> To: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Call external program from reply_rote
>
> Hi, Gary!
> 
> I have pushed a patch for 1.11 downto 1.8 for this issue.
> However, if you can't update your sources now, setting the setvars[1] 
> parameter to 0 should make this work.
> 
> [1] http://www.opensips.org/html/docs/modules/1.11.x/exec.html#id248413
> 
> Best regards,
> 
> Răzvan Crainea
> OpenSIPS Solutions
> www.opensips-solutions.com
> 
> On 10/28/2014 12:40 PM, Bogdan-Andrei Iancu wrote:
> > 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
> >>>>
> >>>
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list