Hello!
I have the following architecture:
- Kamailio with RTPEngine (with public access on IP *YY.YY.42.207*)
- Asterisk (with no public access, internal IP *172.31.69.198*)
I am using a Voip SIP (with public access on IP *54.XXX.XXX.44*) configured
as a Trunk on Kamailio using UAC Module.
The issue I am facing is that the SIP messages replies I get from the VOIP
provider are being destined to Kamailio's public IP (YY.YY.42.207) instead
of Asterisk's IP (as sent on the message).
For example, this is the 200 message I sent to the VOIP provider (I clearly
state that the contact is Asterisk sip:172.31.69.198:5080):
2022/04/07 14:17:19.260864 172.31.32.7:5060 -> 54.XXX.XXX.44:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 54.XXX.XXX.44:5060;rport=5060;branch=z9hG4bK90b6.f7a6b0a4.0
Record-Route: <sip:YY.YY.42.207;lr;ftag=p0BjH21gpa3rc>
Call-ID: 464f21c3-3120-123b-91b2-026ef2fede4c
From: "419XXXXX998" <sip:38XXXX02@172.31.32.169>;tag=p0BjH21gpa3rc
To: <sip:38XXXX02@54.XXX.XXX.44>;tag=8c3bb09e-a909-4cb4-99a7-3c57aa8f946e
CSeq: 50116727 INVITE
Server: Asterisk PBX 18.11.0
*Contact: <sip:172.31.69.198:5080 <http://172.31.69.198:5080>>*
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE,
CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 239
v=0
o=- 1649321756 1649321759 IN IP4 172.31.69.198
s=Asterisk
c=IN IP4 172.31.69.198
t=0 0
m=audio 10010 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
But the ACK I get from them is destined to Kamailio instead of Asterisk:
2022/04/07 14:17:19.263469 54.XXX.XXX.44:5060 -> 172.31.32.7:5060
*ACK sip:YY.YY.42.207:5060 SIP/2.0*
Route: <sip:YY.YY.42.207;lr;ftag=p0BjH21gpa3rc>
Via: SIP/2.0/UDP 54.XXX.XXX.44:5060;branch=z9hG4bK90b6.f7a6b0a4.2
Max-Forwards: 69
From: "419XXXXX998" <sip:38XXXX02@172.31.32.169>;tag=p0BjH21gpa3rc
To: <sip:38XXXX02@54.XXX.XXX.44>;tag=8c3bb09e-a909-4cb4-99a7-3c57aa8f946e
Call-ID: 464f21c3-3120-123b-91b2-026ef2fede4c
CSeq: 50116727 ACK
Contact: <sip:voip.voip-sbc.6792.fab37901@54.XXX.XXX.44:5060>
Content-Length: 0
This causes Kamailio to not know where to forward the message to...
Asterisk never gets the reply.
This is happening to one of the SIP Trunks I am using, with the other,
everything is fine.
Is there anything I can do to work around it (other than contacting the
provider to fix on their end)?
Thanks!
ps: I have attached the full SIP messages trail to help.
Hello all,
I’ve been trying to figure out how htable reloads happen. Does it replaces
the existing one or creates a new one, populates it from the db and then
renames it? The latter would be (I think) ideal, even if it uses more
resources.
Thanks!
David
--
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
Hello Expert,
We faces problem in utilizing lcr command line in "kamctl lcr show_gws",
whereas kamailio version is 5.5.4 which are new kamailio release, "kamctl
lcr show_gws" shown result "command disabled".
in this case, LCR module is already been uploaded and the systemd has been
running well active kamailio.
Could you share, what probably wrong in my kamailio configuration?
Best Regards,
Hello Expert,
I have problem in utilizing lcr command line in "kamctl lcr show_gws",
whereas my kamailio version is 5.5.4 which are new kamailio release,
"kamctl lcr show_gws" shown result "command disabled".
in this case, LCR module is already been uploaded and the systemd has been
running active kamailio.
Here detailed screenshot :
[image: image.png]
Could you share, what probably wrong in my kamailio configuration?
Best Regards,
problem in "kamctl lcr show_gws" resulting "command disabled".
Kamailio uses LCR module uploaded and running active kamailio.
what probably wrong in kamailio?
[image: image.png]
problem in "kamctl lcr show_gws" (kamailio version 5.5.4 / new release)
resulting "command disabled".
LCR module had been uploaded on running well active kamailio.
Could you share, what probably wrong in my kamailio configuration?
[image: image.png]
Best regards
Hello Expert,
I have problem in utilize lcr command line "kamctl lcr show_gws", whereas
kamailio version is 5.5.4 (new kamailio release), those resulting "command
disabled".
In this case, LCR module is already been uploaded and the systemd has been
running active kamailio.
Could you share, what probably wrong in my kamailio configuration?
[image: image.png]
Best regards
Dear Developer,
would you please share which pcre.h file ? due to my compiling source
kamailio 5.5.4 found error as captured below.
In file included from dialplan.c:59:
dialplan.h:33:10: fatal error: pcre.h: No such file or directory
33 | #include <pcre.h>
| ^~~~~~~~
compilation terminated.
Kind Regards,
Hello all ,
Do you know any way to get the hostname of my server at kamailio runtime ?
The simple idea behind this would be ton import a specific environment file base on hostname.
Regards,
David
good evening everyone,
can you please help how to parse following XML body and get the "<gml:pos>31.204359 -44.512358</gml:pos>" in a variable?
<?xml version="1.0"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10" xmlns:gml="http://www.opengis.net/gml" xmlns:gs="http://www.opengis.net/pidflo/1.0" xmlns:con="urn:ietf:params:xml:ns:geopriv:conf" entity="sip:+6478897789@ims.mnc0xx.mccxxx.3gppnetwork.org">
<dm:device id="Wifi">
<gp:geopriv>
<gp:location-info>
<gs:Circle srsName="urn:ogc:def:crs:EPSG::5524">
<gml:pos>31.204359 -44.512358</gml:pos>
<gs:radius uom="urn:ogc:def:uom:EPSG::8190">10.578000</gs:radius>
</gs:Circle>
<con:confidence pdf="normal">92</con:confidence>
</gp:location-info>
<gp:method>DBH_HELO</gp:method>
<gp:usage-rules/>
</gp:geopriv>
<dm:timestamp>2022-04-05T19:16:34Z</dm:timestamp>
</dm:device>
</presence>
i tried few variants:
xinfo("GML_LOC: $xml(x=>xpath:/pidf:presence/pidf:dm:device/pidf:gp:geopriv/pidf:gp:location-info/pidf:gs:Circle/pidf:gml:pos)\n")
xinfo("GML_LOC: $xml(x=>xpath:/pidf:presence/pidf:dm\:device/pidf:gp\:geopriv/pidf:gp\:location-info/pidf:gs\:Circle/pidf:gml\:pos)\n");
xinfo("GML_LOC: $xml(x=>xpath:/pidf:presence/pidf:dm:device/pidf:gp:geopriv/pidf:gp:location-info/pidf:gs:Circle/pidf:gml:pos)\n");
xinfo("GML_LOC: $xml(x=>xpath:/pidf:presence/dm:device/gp:geopriv/gp:location-info/gs:Circle/gml:pos)\n");
and end up with error "unable to evaluate xpath expression":
ERROR: xmlops [pv_xml.c:308]: pv_get_xml(): unable to evaluate xpath expression [/pidf:presence/dm:device/gp:geopriv/gp:location-info/gs:Circle/gml:pos/70]
thanks in advance,Art