change the to_tag on send_reply() or sl_send_reply()
Hi, Is i possible to control the to_tag when i send my own stateless reply from kamailio. Thanks, Uri
On 01 Mar 2016, at 16:29, Uri Shacked <ushacked@gmail.com> wrote:
Hi,
Is i possible to control the to_tag when i send my own stateless reply from kamailio.
Why would you want to do that? Curious. I did however lack the capability of accessing the Kamailioi defined to-tag in the scripts. Maybe we should make it available in a pseudovariable somewhere. /O
>* On 01 Mar 2016, at 16:29, Uri Shacked <ushacked at gmail.com <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote: *> >* Hi, *> >* Is i possible to control the to_tag when i send my own stateless reply from kamailio. * Why would you want to do that? Curious. I did however lack the capability of accessing the Kamailioi defined to-tag in the scripts. Maybe we should make it available in a pseudovariable somewhere. /O I have a need (unfortunately :-)) to suspend the 200ok answer that i s being relayed to the caller. I am using t_suspend() and t_continue() for it. But, when the caller decide to cancel the call before I managed to resume the transaction, I would like to send a 487 stateless in order for the client to disconnect immediately. So, I need to send the 487 with the relevant to_tag. Uri . On Tue, Mar 1, 2016 at 5:29 PM, Uri Shacked <ushacked@gmail.com> wrote: > Hi, > > Is i possible to control the to_tag when i send my own stateless reply > from kamailio. > > Thanks, > Uri >
On 01/03/16 17:23, Uri Shacked wrote:
/On 01 Mar 2016, at 16:29, Uri Shacked <ushacked at gmail.com <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote: />//>/Hi, />//>/Is i possible to control the to_tag when i send my own stateless reply from kamailio. / Why would you want to do that? Curious.
I did however lack the capability of accessing the Kamailioi defined to-tag in the scripts. Maybe we should make it available in a pseudovariable somewhere.
/O
I have a need (unfortunately :-)) to suspend the 200ok answer that i s being relayed to the caller. I am using t_suspend() and t_continue() for it. But, when the caller decide to cancel the call before I managed to resume the transaction, I would like to send a 487 stateless in order for the client to disconnect immediately.
So, I need to send the 487 with the relevant to_tag. It should work to send the 487 with any To-tag, because the call is not answered yet and the proxy can do parallel/serial forking, where there are various tags anyhow and only one is picked up in normal case.
Have you tried to just send the 487 reply with send_reply()? Wasn't working? Cheers, Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Berlin, March 7-9, 2016 - http://www.asipto.com
*I tried sl_send_reply(), send_reply() and t_reply() (after t_newtran() for the last one).* *all did not work.* *if i send reply before the cancel arrives, yes, no problem.* *but i want to reply to the cancel with 487, and it does not seem to work.* *the only differences between my reply and the 487 destination's reply, is the to_tag and the Cseq method (Cseq number is the same).* *the destination's 487 to_tag is similar to the 180/183 to_tag that it sent prior to canceling and the 487 Cseq method is for the INVITE.* *on the reply i generate th Cseq method is CANCEL.* *any ideas?* *thanks,* *Uri*
It should work to send the 487 with any To-tag, because the call is not answered yet and the proxy can do parallel/serial forking, where there are various tags anyhow and only one is picked up in normal case.
Have you tried to just send the 487 reply with send_reply()? Wasn't working?
Cheers, Daniel
Why would you want to do that? Curious.
I did however lack the capability of accessing the Kamailioi defined to-tag in the scripts. Maybe we should make it available in a pseudovariable somewhere.
/O
I have a need (unfortunately :-)) to suspend the 200ok answer that i s being relayed to the caller. I am using t_suspend() and t_continue() for it. But, when the caller decide to cancel the call before I managed to resume the transaction, I would like to send a 487 stateless in order for the client to disconnect immediately.
So, I need to send the 487 with the relevant to_tag.
Uri
.
On Tue, Mar 1, 2016 at 5:29 PM, Uri Shacked <ushacked@gmail.com> wrote:
Hi,
Is i possible to control the to_tag when i send my own stateless reply from kamailio.
Thanks, Uri
participants (3)
-
Daniel-Constantin Mierla -
Olle E. Johansson -
Uri Shacked