Discussion:
[SR-Users] Problem initiating a call with dlg_bridge
(too old to reply)
Paul Smith
2014-10-23 13:57:04 UTC
Permalink
Raw Message
I seem to be going round in circles… I am trying to use dlg_bridge() from the dialog module to establish a call between two SIP endpoints. I have tested with Snom phones and linphone soft phone with the same result.

I get an outbound call to the first (from) end point, I answer the phone… and then nothing obvious happens.

I can get this same result when using kamcmd or from within the kamailio.cfg. For example using kamcmd:

kamcmd dlg.bridge_dlg sip:***@mykamailioip sip:***@mykamailioip sip:mykamailioip:5060

I expected this to send an invite from "controller" via my KamailioIP to my registered local subscriber 105 (from), and then send a re-invite to 105 so that 105 creates a call leg to 106 (to).

The kamailio.cfg is pretty much the default. I am running 4.2 and rtpengine to proxy the RTP streams.

Not sure if it is necessary or useful but I call setflag() at the start of the request_route() to set the Dialog flag. What else should I have included in the kamailio.cfg to make this work?

Also is there any way to control the SDP in the initial invite from dlg_bridge. By default I see RTP/AVP, with alaw and ulaw…. I’d like to offer RTP/SAVP swell or instead of RTP/AVP.

Thanks
Daniel-Constantin Mierla
2014-10-23 14:39:10 UTC
Permalink
Raw Message
Hello,

what should be happen, is the following:

- invite from controller to first parameter (caller of desired call)
- after 200ok comes from 'caller', kamailio sends REFER to it pointing
to the second parameter (callee of desired call) and then BYE, getting
out of the initial call
- after getting the REFER, caller should send a new INVITE to callee

You can run with debug=3 to see what happens. In kamailio config is
nothing special needed, just allow traffic from kamailio to go back to
kamailio.

Cheers,
Daniel
Post by Paul Smith
I seem to be going round in circles… I am trying to use dlg_bridge()
from the dialog module to establish a call between two SIP endpoints.
I have tested with Snom phones and linphone soft phone with the same
result.
I get an outbound call to the first (from) end point, I answer the
phone… and then nothing obvious happens.
I can get this same result when using kamcmd or from within the
sip:mykamailioip:5060
I expected this to send an invite from "controller" via my KamailioIP
to my registered local subscriber 105 (from), and then send a
re-invite to 105 so that 105 creates a call leg to 106 (to).
The kamailio.cfg is pretty much the default. I am running 4.2 and
rtpengine to proxy the RTP streams.
Not sure if it is necessary or useful but I call setflag() at the
start of the request_route() to set the Dialog flag. What else should
I have included in the kamailio.cfg to make this work?
Also is there any way to control the SDP in the initial invite from
dlg_bridge. By default I see RTP/AVP, with alaw and ulaw…. I’d like
to offer RTP/SAVP swell or instead of RTP/AVP.
Thanks
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...