Hi Bogdan,

i got it. Now it works just fine.

opensipsctl fifo  dlg_list_ctx I was trying with wrong command:)

Thanks!

miha

Dne 5/24/2013 12:54 PM, piše Miha:
Hi Bogdan,

thanks for your answer.

I need a little help regarding this function as I am not getting any results.

I am doing

if ( get_dialog_info("callee","$var(x)","caller","$fu")) {
xlog("caller $fU has another ongoing, talking to callee $var(x)\n");
}

# create dialog for current call and place the caller and callee attributes
$dlg_val(caller) = $fu;
$dlg_val(callee) = $ru;
create_dialog("B");

xlog("$fu");
xlog("$ru");

}


I am trying to postive feedback from get_dialog_info() but with no luck.


After call is made:

root@opensips:/tmp/iptables# opensipsctl fifo dlg_list
dialog:: hash=1849:532012117
state:: 2
user_flags:: 0
timestart:: 0
timeout:: 0
callid:: [email protected]
from_uri:: sip:[email protected]
to_uri:: sip:[email protected]
caller_tag:: df9b2a02f06d2193o0
caller_contact:: sip:[email protected]:5349
callee_cseq:: 0
caller_route_set::
caller_bind_addr:: udp:xxx.103.xxx.16:5060
callee_tag:: rc2Hp8yUXpF1K
callee_contact::
caller_cseq:: 102
callee_route_set::
callee_bind_addr:: udp:xxx.103.xxx.16:5060
dialog:: hash=3915:1481556783
state:: 2
user_flags:: 0
timestart:: 0
timeout:: 0
callid:: ab5c8644-3f01-1231-908b-0030486435ea
from_uri:: sip:[email protected]
to_uri:: sip:[email protected]:5060
caller_tag:: 681yHBQyt4D4r
caller_contact:: sip:[email protected]:5080
callee_cseq:: 0
caller_route_set::
caller_bind_addr:: udp:xxx.103.xxx.16:5060
callee_tag:: f04b6e899a477f80i0
callee_contact::
caller_cseq:: 44360052
callee_route_set::
callee_bind_addr:: udp:xxx.103.xxx.16:5060
root@opensips:/tmp/iptables#





Dne 5/22/2013 6:15 PM, piše Bogdan-Andrei Iancu:
Hi Miha,

So, what you need to do at OpenSIPS level is to be sure that you send
the "pick up" call to the same FS as used for the call you want to pick up.

For that I suggest to use some dialog variable (to attach some
information to the calls) in combination with get_dialog_info() function
( http://www.opensips.org/html/docs/modules/1.9.x/dialog.html#id294427
). This function allows you to (1) grep all existing calls based on a
dlg_var==some_value and (2) return another dlg_var from the found dialog
; the returned dlg_var may contain the id of the SF where the call was
sent to.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 05/22/2013 09:23 AM, Miha wrote:
HI to all,

i need a little help regarding one scenaria (What would be the best
way to implement this).

I am having opensips which is heandling registration and load
balancing. Behind opensips I am having FS servers. What would be the
best way to implement group call pickup. I need to know to which FS
server send I call which will do call pickup. I must intercept only
ringing phones. Call pickup future I have implemented on FS as would
be also for PBX futures.

thanks!
miha

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to