I'm trying to use the is_present_hf function to detect the presence of a
user-defined header and getting the following errors in my Kamailio logs:
2(12149) BUG: <core> [select.c:426]: run_select(): Select structure has not
been resolved
2(12149) ERROR: <core> [lvalue.c:416]: lval_assign(): assignment failed at
pos: (99,58-99,58)
2(12149) ERROR: <script>:
A quick Google search yielded no results for why this could be happening.
Originally, I had my code in route[REPLY], but noticed that was not one of
the paths it was listed as available in the textops document, so I moved it
to request_route, but got the same errors. Does anyone have any feedback on
how to move forward? My code snippet is below:
if (is_present_hf("X-Digium-AppServer-Response-URI")) {
$var(a) = @hf_value.X_Digium_AppServer_Response_URI[1];
xlog ("\n\nHERE RESPONSE URI $var(a)\n\n");
}
Thanks,
Kyle
--
*Kyle Kurz*
Digium, Inc. · Senior Software Engineer
9115 Brown Deer Rd · San Diego, CA 92121 · US
direct +1 858.537.1166
Check us out at: http://digium.com · http://asterisk.org
<http://www.asterisk.org/>
Hello Alex,
This is debug might be helpful.
Mar 29 12:24:05 canlvprx01 kamailio: 11(31941) DEBUG: <core> [receive.c:154]: receive_msg(): After parse_msg...
Mar 29 12:24:05 canlvprx01 kamailio: 11(31941) DEBUG: <core> [receive.c:197]: receive_msg(): preparing to run routing scripts...
Mar 29 12:24:05 canlvprx01 kamailio: 11(31941) DEBUG: sl [sl_funcs.c:412]: sl_filter_ACK(): DEBUG : sl_filter_ACK: to late to be a local ACK!
Slava.
From: "Slava Bendersky" <volga629(a)networklab.ca>
To: "sr-users" <sr-users(a)lists.sip-router.org>
Sent: Sunday, March 29, 2015 11:56:58 AM
Subject: Re: [SR-Users] NAT Contact:
Hello Alex,
I switched to aliases method, but in case like this,
AU ----> Internet ---> Kamailio ----> Asterisk
AU2 <--Internet <---------| <------------|
Call between two extensions not working, because kamailio mark as external domain and LOCATION not saved, but even if I save location I see in kamctl ul show more then 5 records for each AOR.
Slava.
From: "Slava Bendersky" <volga629(a)networklab.ca>
To: "sr-users" <sr-users(a)lists.sip-router.org>
Sent: Sunday, March 29, 2015 9:52:18 AM
Subject: Re: [SR-Users] NAT Contact:
Hello Alex,
I switched to alias method, but there some CRITICAL message.
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=905 a=16 n=if
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=901 a=24 n=is_first_hop
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) DEBUG: siputils [sipops.c:161]: w_is_first_hop(): no 2nd via found - first hop
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) CRITICAL: <core> [route.c:1237]: comp_num(): Invalid right operand (1)
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=902 a=5 n=route
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[ADD_CONTACT_ALIAS] c=[/etc/kamailio/kamailio-asterisk.cfg] l=976 a=16 n=if
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[ADD_CONTACT_ALIAS] c=[/etc/kamailio/kamailio-asterisk.cfg] l=971 a=24 n=add_contact_alias
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) DEBUG: nathelper [nathelper.c:970]: add_contact_alias_0_f(): no need to add alias param
From: "Alex Balashov" <abalashov(a)evaristesys.com>
To: "sr-users" <sr-users(a)lists.sip-router.org>
Sent: Saturday, March 28, 2015 7:31:54 PM
Subject: Re: [SR-Users] NAT Contact:
On 03/28/2015 07:26 PM, Slava Bendersky wrote:
> Is for mix of tcp transport and alias is required add any additional
> parameters in global configuration ?
I wouldn't think so.
--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)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(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Alex,
I switched to aliases method, but in case like this,
AU ----> Internet ---> Kamailio ----> Asterisk
AU2 <--Internet <---------| <------------|
Call between two extensions not working, because kamailio mark as external domain and LOCATION not saved, but even if I save location I see in kamctl ul show more then 5 records for each AOR.
Slava.
From: "Slava Bendersky" <volga629(a)networklab.ca>
To: "sr-users" <sr-users(a)lists.sip-router.org>
Sent: Sunday, March 29, 2015 9:52:18 AM
Subject: Re: [SR-Users] NAT Contact:
Hello Alex,
I switched to alias method, but there some CRITICAL message.
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=905 a=16 n=if
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=901 a=24 n=is_first_hop
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) DEBUG: siputils [sipops.c:161]: w_is_first_hop(): no 2nd via found - first hop
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) CRITICAL: <core> [route.c:1237]: comp_num(): Invalid right operand (1)
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=902 a=5 n=route
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[ADD_CONTACT_ALIAS] c=[/etc/kamailio/kamailio-asterisk.cfg] l=976 a=16 n=if
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) ERROR: *** cfgtrace:request_route=[ADD_CONTACT_ALIAS] c=[/etc/kamailio/kamailio-asterisk.cfg] l=971 a=24 n=add_contact_alias
Mar 29 09:54:45 canlvprx01 kamailio: 2(31248) DEBUG: nathelper [nathelper.c:970]: add_contact_alias_0_f(): no need to add alias param
From: "Alex Balashov" <abalashov(a)evaristesys.com>
To: "sr-users" <sr-users(a)lists.sip-router.org>
Sent: Saturday, March 28, 2015 7:31:54 PM
Subject: Re: [SR-Users] NAT Contact:
On 03/28/2015 07:26 PM, Slava Bendersky wrote:
> Is for mix of tcp transport and alias is required add any additional
> parameters in global configuration ?
I wouldn't think so.
--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Alex,
Is for mix of tcp transport and alias is required add any additional parameters in global configuration ?
Slava.
From: "Alex Balashov" <abalashov(a)evaristesys.com>
To: "sr-users" <sr-users(a)lists.sip-router.org>
Sent: Saturday, March 28, 2015 5:26:16 PM
Subject: Re: [SR-Users] NAT Contact:
Hello Slava,
On 03/28/2015 02:26 PM, Slava Bendersky wrote:
> How is possible add to Contact: received=ip ? Is this should be
> handled by fix_nated_contact()
This is not the function of fix_nated_contact(). Have a look at a
add_rcv_param():
http://kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper.f.a…
Someone might correct me if I'm wrong, but I believe the problem with
the ;received approach is that it's only useful for registrations, since
only the registrar module has a provision that allows it to be used
automatically. So, for larger applications outside of registration, you
should take a look at the new add_contact_alias() / handle_ruri_alias()
facility:
http://kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper.f.a…http://kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper.f.h…
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Everyone,
How is possible add to Contact: received=ip ? Is this should be handled by fix_nated_contact() ? I am using default NATDETECT route, but I see in debug fix_nated_contact() executed, but in SDP Contact: stay Contact: <sip:102@private_ip:5065;transport=tcp>;audio.
>From public side client use TCP inbound to kamailio and on local side to asterisk is use UDP. Kamailio have 2 interfaces one public one private.
Any help thank you.
Mar 28 14:28:28 canlvprx01 kamailio: 14(28868) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=895 a=55 n=force_rport
Mar 28 14:28:28 canlvprx01 kamailio: 14(28868) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=905 a=16 n=if
Mar 28 14:28:28 canlvprx01 kamailio: 14(28868) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=896 a=25 n=nat_uac_test
Mar 28 14:28:28 canlvprx01 kamailio: 14(28868) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=901 a=16 n=if
Mar 28 14:28:28 canlvprx01 kamailio: 14(28868) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=897 a=25 n=is_method
Mar 28 14:28:28 canlvprx01 kamailio: 14(28868) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=900 a=24 n=fix_nated_contact
Mar 28 14:28:28 canlvprx01 kamailio: 14(28868) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=902 a=39 n=setflag
Mar 28 14:28:28 canlvprx01 kamailio: 14(28868) ERROR: *** cfgtrace:request_route=[NATDETECT] c=[/etc/kamailio/kamailio-asterisk.cfg] l=905 a=2 n=return
Hello Dear Sip Router Team
I’m asking you to help me please with kamailio configuration
I’ve made some laboratory system following this document http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb <http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb> and it works perfect.
But this scenario is not good for my tests.
What i really want is:
UAC going to Kamailio IP address and Kamailio forwarding request to Asterisk IP without auth on Kamailio and auth with asterisk .conf files (i mean without mysql at all)
But i wanna keep data about what to do will presence and other stuff
Can you make changes in attached files please?
Hello,
I need to reload a htable from the database when a certain condition is met inside my kamailio script.
I found the htable.reload htable RPC command, but is it possible to run this from within the script?
Is there perhaps another way to force reload the htable inside the script?
Thanks,
Grant
I've been working on integration of Asterisk and Kamailio, currently on the
same host with different ports, and have come across a problem with calls that
originate from the Asterisk side (PSTN/DAHDI) and route through Kamailio to a
SIP UAC. In short, when the SIP UAC (10.1.1.9) sends the BYE, loose_route()
is returning -1 and the BYE is routed back to Kamailio (10.1.1.1:5060) instead
of Asterisk (10.1.1.1:5080). I am using the stock WITHINDLG route
configuration.
RR module settings are as follows:
modparam("rr", "enable_full_lr", 1)
modparam("rr", "append_fromtag", 1)
The BYE from the SIP UAC contains the following Route header which only
contains the contents of Kamailio's Record-Route header. I have attached the
full sip trace for review as well.
Route: <sip:10.1.1.1;lr=on;ftag=2400d939-de0b-4456-9e01-f9a3302f3e25;nat=yes>.
What would be the best method to resolve this issue in either Asterisk or
Kamailio? Should I manually add a Record-Route header for the Asterisk
host:port to Kamailio config? Is there something to be done in Asterisk?
Thanks. -A
--
Anthony - https://messinet.com/ - https://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E