This is the typical BLF case. Why don't you use BLF/presence to do it?
If you really want to do it from the script you can save all the required
info in a cache and retrieve it from there, instead of messing with the
dialog module.
Regards,
Ovidiu Sas
On Feb 7, 2014 7:37 AM, "John Murray" <john.murray(a)skyracktelecom.com>
wrote:
Daniel,
On an incoming call I need to get the call-id from a ringing call in a
specific dialog profile. I then add that called to a replaces header and
send to a B2BUA which connects the current call to the ringing one.
Thanks
John
*From:* Daniel-Constantin Mierla [mailto:miconda@gmail.com]
*Sent:* 07 February 2014 12:32
*To:* John Murray; 'Kamailio (SER) - Users Mailing List'
*Subject:* Re: [SR-Users] Dialog
Hello,
in config you have access to SIP message that is currently processed and
there you can simply use $ci. Or is there a special event route where you
need the call-id?
Cheers,
Daniel
On 07/02/14 13:29, John Murray wrote:
Hi Daniel,
Yes I need it in the kamailio config.
Thanks
John
*From:* sr-users-bounces(a)lists.sip-router.org [
mailto:sr-users-bounces@lists.sip-router.org<sr-users-bounces@lists.sip-router.org>]
*On Behalf Of *Daniel-Constantin Mierla
*Sent:* 07 February 2014 12:15
*To:* Kamailio (SER) - Users Mailing List
*Subject:* Re: [SR-Users] Dialog
Hello,
do you need it in kamailio config or from an external application? From
external application the mi/rpc command has to be used.
Cheers,
Daniel
On 06/02/14 21:45, John Murray wrote:
Hi,
I need to get call-id and from-tag from a call in ringing state (2).
If I use dlg_manage() and put the call into a profile using
set_dlg_profile("usr","1").
Then do a avp_db_query() I don't see the call until it is connected.
I am using db_mode 1.
Yet if I do a sercmd dlg.dlg_list I see the call in ringing state and when
it is connected.
How do I get the call-id when it is in ringing state?
Regards
John
_______________________________________________
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
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
_______________________________________________
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