Hi all,
I have problem when make call with my Android mobile use PJSIP library.
Scenario:
my client -> Kamailio -> Freeswitch (media server) -> another client (soft
phone on Windows)
my client:
+ use Bluestack
+ Capture via Wireshark
+ use Wifi
Issue: The call will be drop after ~ 30 second.
I see the error on Kamailio:
*Jan 5 16:08:59 ab-kz-02 kamailio[6343]: ERROR: <core>
[parser/parse_fline.c:257]: parse_first_line(): parse_first_line: bad
message (offset: 13)*
*Jan 5 16:08:59 ab-kz-02 kamailio[6343]: ERROR: <core>
[parser/parse_fline.c:257]: parse_first_line(): parse_first_line: bad
message (offset: 13)*
*Jan 5 16:08:59 ab-kz-02 kamailio[6343]: ERROR: <core>
[parser/msg_parser.c:690]: parse_msg(): ERROR: parse_msg: message=<p:8
PCMA/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101
0-16#015#012ACK sip:buiduchahai@125.212.212.36:11000;transport=tcp
SIP/2.0#015#012Via: SIP/2.0/TCP
10.0.2.15:57735;rport;branch=z9hG4bKPjlgc13AjrUrFJHq60vWhGqsUaGXi2F98Z;alias#015#012Max-Forwards:
70#015#012From: "Phap Huynh"
<sip:huynhngocphap@happy.anttel-pro.ab-kz-02.antbuddy.com
<sip%3Ahuynhngocphap(a)happy.anttel-pro.ab-kz-02.antbuddy.com>>;tag=zJBNvD67y3E.1I5Y5ZrRI4JmP5JKeNWO#015#012To:
<sip:buiduchahai@happy.anttel-pro.ab-kz-02.antbuddy.com
<sip%3Abuiduchahai(a)happy.anttel-pro.ab-kz-02.antbuddy.com>>;tag=2SF4D790Zy6Kj#015#012Call-ID:
ftMudIpIQeKWwP8kQDi2z1S0D1sV3KaB#015#012CSeq: 29055 ACK#015#012Route:
<sip:125.212.212.40;transport=tcp;lr;ftag=zJBNvD67y3E.1I5Y5ZrRI4JmP5JKeNWO>#015#012Content-Length:
0#015#012#015#012>*
*Jan 5 16:08:59 ab-kz-02 kamailio[6343]: ERROR: <core> [receive.c:129]:
receive_msg(): core parsing of SIP message failed (49.156.54.54:50785/2
<http://49.156.54.54:50785/2>)*
Seem to the server error when parse
(on INVITE SDP)
*a=rtpmap:8 PCMA/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16*
(on new ACK message)
*ACK sip:buiduchahai@125.212.212.36:11000;transport=tcp SIP/2.0*
*Via: SIP/2.0/TCP
10.0.2.15:57735;rport;branch=z9hG4bKPjlgc13AjrUrFJHq60vWhGqsUaGXi2F98Z;alias*
*Max-Forwards: 70*
*From: "Phap Huynh"
<sip:huynhngocphap@happy.anttel-pro.ab-kz-02.antbuddy.com
<sip%3Ahuynhngocphap(a)happy.anttel-pro.ab-kz-02.antbuddy.com>>;tag=zJBNvD67y3E.1I5Y5ZrRI4JmP5JKeNWO*
*To: <sip:buiduchahai@happy.anttel-pro.ab-kz-02.antbuddy.com
<sip%3Abuiduchahai(a)happy.anttel-pro.ab-kz-02.antbuddy.com>>;tag=2SF4D790Zy6Kj*
*Call-ID: ftMudIpIQeKWwP8kQDi2z1S0D1sV3KaB*
*CSeq: 29055 ACK*
*Route:
<sip:125.212.212.40;transport=tcp;lr;ftag=zJBNvD67y3E.1I5Y5ZrRI4JmP5JKeNWO>*
*Content-Length: 0*
I think the SIP message is fragmented but when resume package is not
correct.
Do you have any advice ? Thank you for watching !
Regards,
Hai Bui
--
Hai Bui
VoIP engineer, Cvoice team, HTK-HCM Office
Mobile: +84-165-618-9876
Hello,
another edition of FOSDEM is approaching, about 2 weeks left:
- https://fosdem.org/2017/
Couple of devs and many Kamailio friends will be around.
Like past year, there is a Realtime Communications devroom, this edition
on Sunday. Very interesting presentation for our ecosystem: Olle giving
a presentation about IPv4/IPv6, Inaki introducing its SFU media server
project, Jose talking about JsSIP, Daniel debating about fundraising
FreeRTC, Lorenzo with Janus SIP-WebRTC gateway, the other Lorenzo with
Homer Sipcature, Saul with Jitsi, Dan with cgrates, Matt with Asterisk,
Giovanni with FreeSwitch... Schedule at:
- https://fosdem.org/2017/schedule/track/real_time_communications/
On Sunday morning, part of Lua devroom, I will present about using Lua
for building RTC services with Kamailio:
- https://fosdem.org/2017/schedule/track/lua/
- https://fosdem.org/2017/schedule/event/luartcserviceskamailio/
During the past editions we organized a dinner on Saturday evening.
Shall we attempt to do it again in advance this year? Or should we do it
on spot based on the weather and mood at the end of Saturday?
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
Hello,
we have the following Configuration for our kamailio installation (we are
using TLS and not udp)
(1) F5 Firewall (configured as message fowarding), opening a TLS server on
the outside
(2) SIP proxy, with a TLS server accessed by the F5 . The SIP proxy doesnt
see the F5 TLS server
(3) SIP registrar
REGISTER works find
We have the following issue on INVITE:
A sends an INVITE to B.
The Registrar patches the R-URI with the content of location, which contains
the publi ip of the Device (because the device used stun)
we force the routing from registrar to proxy by using t_relay (SIP_PROXY_IP)
/The proxy tries to route to this R-URI, which is not visible/
I am not sure how to fix that:
Record Route is for a true sip proxy, but the Firewall does not have an
server facing the SIP proxy: the sip proxy needs to find the proper client
socket opened at register to route the INVITE
We have arranged for the Firewall to add its own Via, but if i understand
correctly, this is used for replies, and here we are dealing with a request
forwarding, and t_relay uses the r-ruri to route requests. IT might be why
REGISTER works correctly (ie the 200 OK is routed correctly from proxy to
firewall)
I could arrange for the location table to contain the private ip and port of
the firewall connection (through the use of the received/rport info inserted
in the Via by the proxy )
That would mean, however that the contact of the user will contain the
private interface of the F5 which i found weird.
How do you think i should proceed ? any advices are welcome
Thank you
--
View this message in context: http://sip-router.1086192.n5.nabble.com/kamailio-proxy-behind-firewall-tp15…
Sent from the Users mailing list archive at Nabble.com.
Hello sr-users,
First of all, I'm new to this forum so any help would be greatly
appreciated as my Kamailio knowledge is somewhat limited. Thanks for your
patience.
So to the question at hand. If the originator of the SIP method sends SIP
messages out of order, does the Kamailio put them back in order before
relaying it to the destination device? I'm seeing where the 200 OK was
sent first before the SIP UPDATE within the same CSeq number.
The reason I'm asking is because I'm seeing this behavior now with UDP
transport protocol and I'm trying to justify why we don't need to switch to
TCP to fix this issue.
Thanks.
--Andy
Hi Guys,
Just wanted to clarify the following case:
what should be result of sdp_with_transport("RTP/SAVPF") on line:
m=audio 10231 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
I am having a weird behavior for two different versions of Kamailio. I hope
I am doing something wrong.
kamailio 4.3.2 => sdp_with_transport("RTP/SAVPF") = true
kamailio 4.4.5 => sdp_with_transport("RTP/SAVPF") = false
--
Regards
M. Salman
VoIP Professional
Hi,
Are there any public databases of dial plan information? Are there any
schemas (e.g. XML / XSD) useful for describing arbitrary dial plans from
different carriers around the world?
The type of things that I'm interested in:
- being able to translate any local number to E.164 (if possible)
- knowing the expected length (or range of lengths) for different numbers
- being able to recognize numbers that can't be translated to E.164
(e.g. the emergency numbers)
- being able to classify specific types of number that usually have a
carrier-specific or country-specific meaning (e.g. classifying numbers
as directory assistance, customer service, emergency)
I'm familiar with Google's libphonenumber, although it is not a
database, rather, it is a library that has dial plan logic in Java. It
supports many of the things I want for numbers that can be translated to
E.164 and country-level dial plans, but not local dial plans (e.g.
dialing a London number without the 020 area code).
Regards,
Daniel
Hello Guys!
I'd like to be able to use SRV records inside dispatcher groups, so I can
automatise the discovery of new backends on my network using DNS
I've tried with the following formats into the dispatcher.list file:
$group _sip._udp.sip-voice_backends
$group sip-voice_backends
and none looks to be working, running the kamailio_ctl dispatcher.list
won't show me the group set with SRV records. ( I also try NAPTR records,
with no luck as well.)
* Does the dispatcher module support SRV or NAPTR records? (maybe my format
is not correct)
* If not, do you have any other idea on what I could do to achieve what I'd
like to do?
Thanks
Alessio
Hello,
I want to start a discussion about some of the kamailio tutorials from
the wiki, mainly those related to core cookbook, variables and
transformations. They are now in dokuwiki at:
- https://www.kamailio.org/wiki/#cookbooks
The wiki served us pretty well so far, however the contributions there
are not that active. From time to time we still get spammers, even we
added restriction that only registered and authenticated users can write.
I am thinking that maybe people don't like creating yet another account
just add some example or rephrase for clarity.
On the other hand, there are over 400 registered users, many of them I
expect to be either made because if misunderstanding the purpose or by
spammers that guessed the (sip) captcha (plenty of random usernames).
Besides that I think the wiki adds overhead when releasing a new version
as each time we have to copy and paste old version content to a new set
of pages and update the version number.
With the above in mind, I wonder if won't be better to store those
tutorials in markdown format and use mkdocs.org or gitbook
(https://github.com/GitbookIO/gitbook) tools to generate the html and
host it in kamailio.org. The wiki will still be used to index them.
Among the benefits I see:
* store in github.com (a new repo, like: kamailio-docs) and all devs
can contribute directly, other users can make pull requests
* create branches for each major version of kamailio and backport
across them with git whenever is applicable
* the edit can be done directly via github.com website (similar to
the wiki right now) and even read it directly from github in html
transformed from markdown by github
* one can get them offline by cloning the git repo, use them or
enhance when offline
Many if the tutorials will stay in the wiki, but I think those that are
related to documenting per kamailio version should be migrated to gihub
storage + markdown. If there is a strong pro opinion for this change, I
can try to convert one of the cookbooks very soon so people can feel
better the difference. If we get to a consensus, then I think we can
have those tutorials in the new format for v5.0.
Should anyone have comments, other suggestions or improvements, let's
put them on debate.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
Hello,
I'm using Kamailio 4.4.4 with TSILO module in order to support Push Notifications used by our voip app on Apple ios10.
So far, everything works fine: Kamailio can get an incoming call, suspend it, then send push notification with an external script, receive a new app registration and then call it after resuming the invite.
To do so, thanks to Mr, Cabiddu, I used all the functions described here
http://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-…
Right now, I would like to support serial forking calls using push notification because it was already supported with legacy voip.
To do so, I used failure_route function where, after getting the call destinations and setting them into an avp, I set the new SIP request uri $ru.
Here is my failure_route:
failure_route[MANAGE_FAILURE]
route(NATMANAGE);
if (t_is_canceled())
exit;
#!ifdef WITH_BLOCK3XX
# block call redirect based on 3xx replies.
if (t_check_status("3[0-9][0-9]"))
t_reply("404","Not found");
exit;
#!endif
if (is_avp_set("$avp(group_members_db)"))
$ru ="sip:"+$avp(group_members_db)+"@"+$fd;
$avp(group_members_db) = $null;
route(LOCATION);
exit;
I am troubleshooting this scenario and this is what I see:
1) Kamailio receives incoming call
2) Suspend it
3) Send Push notification to account1
4) Kamailio receives account1 registration -> INVRESUME route is now called
5) Then call account1
6) Nobody answers the call
7) failure_route[MANAGE_FAILURE] is now called -> set $ru with next sipaccount: account2
8) suspend invite
9) send push notification to account2
10) account2 sends its sip registration -> INVRESUME route is now called
11) Kamailio calls account1 instead of account2 -> this is my issue
On step 10: despite account2 is registered, I checked it using "kamctl ul show", the second call is forwarded all'account1 and not to account2.
I also checked the TSILO logs and everything seems ok. Here is the logs:
First call:
suspended transaction [53945:1648394094] asterisk => account1
htable key value [53945:1648394094]
resuming trasaction [53945:1648394094] account1 53945:1648394094)
second call:
suspended transaction [53945:1648394094] asterisk => account2
htable key value [53945:1648394094]
resuming trasaction [53945:1648394094] account2 53945:1648394094)
In order to find out the issue I put some xlogs, printing $ru value: what I see is the $ru value is set correctly on failure_route but as soon as the t_continue is called, the ru overwritten back to account1
Can anyone address me to find out the solution?
Thanks in advance
T.
Tomas Zanet
Software Design Department
tzanet(a)came.com
Hey Daniel,
if anything to be reserved, please count us also in. Will come back
regarding number of seats but just to be aware that we are interested to
join the dinner.
Thanks!
DanB