Hello Daniel, Yes, reply was 202 not 200. Right now it work as expected.
Slava.
From: "Daniel-Constantin Mierla" miconda@gmail.com To: "sr-users" sr-users@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
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@gmail.com *To: *"sr-users" sr-users@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@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@lists.sip-router.org <mailto: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
-- 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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Daniel, Accept by MESSAGE is 202. In my match string was set 200. I changed to 202 and it works as should be.
Slava.
From: "Daniel-Constantin Mierla" miconda@gmail.com To: "volga629" volga629@skillsearch.ca, "sr-users" sr-users@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@gmail.com To: "sr-users" sr-users@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:
BQ_BEGIN Hello,
In debug you can see 202 Accepted but match configured on 200. Not matched
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@gmail.com *To: *"volga629" volga629@skillsearch.ca, "sr-users" sr-users@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@gmail.com> *To: *"sr-users" <sr-users@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@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@lists.sip-router.org <mailto: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 -- 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@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