[SR-Users] fnmatch
Daniel-Constantin Mierla
miconda at gmail.com
Wed Nov 9 09:36:49 CET 2016
Hello,
On 09/11/16 03:39, Slava Bendersky wrote:
> Hello Daniel,
> Accept by MESSAGE is 202. In my match string was set 200. I changed to
> 202 and it works as should be.
ok, clarified now -- I wanted to be sure it's no unexpected behaviour.
Cheers,
Daniel
>
> Slava.
>
> ------------------------------------------------------------------------
> *From: *"Daniel-Constantin Mierla" <miconda at gmail.com>
> *To: *"volga629" <volga629 at skillsearch.ca>, "sr-users"
> <sr-users at lists.sip-router.org>
> *Sent: *Tuesday, 8 November, 2016 04:35:43
> *Subject: *Re: [SR-Users] fnmatch
>
> Hello,
>
> this is rather confusing -- did you make some changes there to fix it
> or just suddenly works? Because the second sounds like random behaviour.
>
> Cheers,
> Daniel
>
>
> On 07/11/16 18:17, Slava Bendersky wrote:
>
> Hello Daniel,
> Yes, reply was 202 not 200. Right now it work as expected.
>
> Slava.
>
> ------------------------------------------------------------------------
> *From: *"Daniel-Constantin Mierla" <miconda at gmail.com>
> *To: *"sr-users" <sr-users at lists.sip-router.org>
> *Sent: *Monday, 7 November, 2016 04:51:11
> *Subject: *Re: [SR-Users] fnmatch
>
> Hello,
>
> for clarification -- what's the actual problem here?
> fnmatch("$rs", "200") is matching the 202?
>
> Cheers,
> Daniel
>
>
> On 07/11/16 08:52, Serge S. Yuriev wrote:
>
> Hello,
>
> In debug you can see 202 Accepted but match configured on 200.
> Not matched
>
> --
> Wbr, Serge via mobile
>
> 07.11.2016, 01:08, "Slava Bendersky" <volga629 at skillsearch.ca>:
>
> Hello Everyone,
> I trying fnmatch to find which sip status is returned by
> B2BUA. But some reason it doesn't work.
>
>
> Nov 6 17:02:15 cavprx00 kamailio: 2(3747) ERROR: ***
> cfgtrace:onreply_route=[MESSAGE_FORWARD]
> c=[/etc/kamailio/kamailio-asterisk.cfg] l=456 a=26 n=xlog
> Nov 6 17:02:15 cavprx00 kamailio: 2(3747) INFO: <script>:
> Message 1 Accepted by B2BUA --> 202 with Accepted
> Nov 6 17:02:15 cavprx00 kamailio: 2(3747) ERROR: ***
> cfgtrace:onreply_route=[MESSAGE_FORWARD]
> c=[/etc/kamailio/kamailio-asterisk.cfg] l=469 a=16 n=if
> Nov 6 17:02:15 cavprx00 kamailio: 2(3747) ERROR: ***
> cfgtrace:onreply_route=[MESSAGE_FORWARD]
> c=[/etc/kamailio/kamailio-asterisk.cfg] l=457 a=26 n=fnmatch
> Nov 6 17:02:15 cavprx00 kamailio: 2(3747) ERROR: ***
> cfgtrace:onreply_route=[DEFAULT_ROUTE]
> c=[/etc/kamailio/kamailio-asterisk.cfg] l=370 a=2 n=return
>
>
> if(fnmatch("$rs", "200") && (fnmatch("$rr", "Accepted"))) {
> xlog("L_INFO", "Message Accepted by B2BUA --> $rs with $rr
> \n");
> $var(tu) = $tu;
> xlog("L_INFO", "New To --> $var(tu)\n");
> }
>
> Is this fnmatch correct for this operation ?
>
>
> Slava.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
> mailing list
> sr-users at lists.sip-router.org
> <mailto:sr-users at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
>
>
> _______________________________________________
> 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
>
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
>
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161109/dd432eb6/attachment.html>
More information about the sr-users
mailing list