[OpenSIPS-Users] Call Forward on Busy but not to feature server
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Jan 26 13:09:00 CET 2010
Hi Mike,
why you say that "$ru =$avp(s:callfwdbusy); " does not work ? have you
tried to print the $ru after the assignment to see if RURI was indeed
changed?
Regards,
Bogdan
Mike O'Connor wrote:
> Thank Bogdan
>
> So those functions are not going to work, and set '$ru =
> $avp(s:callfwdbusy);' does not work.
>
> How do I achieve what I'm trying to do ?
>
> Mike
>
> On 8/01/10 7:46 PM, Bogdan-Andrei Iancu wrote:
>
>> Hi Mike,
>>
>> rewriteuri / sethostport functions do not accept pseudo variables - only
>> static strings.
>>
>> if you want to push data from variables, use the pseudo-vars to write into :
>> $ru = $avp(i:1); # set whole URI
>> $rd = $avp(i:1); # set domain
>> $rU = $avp(i:1); # set username
>>
>> Regards,
>> Bogdan
>>
>> Mike O'Connor wrote:
>>
>>
>>> 'Hi All
>>>
>>> The follow does not work, I've never seen an example of anyone trying
>>> to use avp's to do this. All the example I've seen do a 'sethostport'
>>> to a static address and then a t_relay.
>>>
>>> ## sethostport("192.168.2.100:5060");
>>> ## # do not set the missed call flag again
>>> ## t_relay();
>>>
>>> In the code below $avp(s:callfwdbusy) is currently resolving to '
>>> sip:500101@<local domain>'
>>>
>>> failure_route[ONFAILURE_ROUTE] {
>>> if (t_was_cancelled()) {
>>> exit;
>>> }
>>>
>>> if (t_check_status("486|408")) {
>>> if (is_avp_set("$avp(s:callfwdbusy)")) {
>>> if (is_avp_set("$avp(s:callfwdbusy)")) {
>>> $ru = $avp(s:callfwdbusy); < --
>>> Comments about this line below
>>> t_relay();
>>> }
>>> }
>>> }
>>> }
>>>
>>> I've tried a number of command for the line with the comment.
>>>
>>> rewriteuri("$avp(s:callfwdbusy)";
>>>
>>> This seemed to be the best option but opensips required "" arround it,
>>> but once there it does not convert this string to a value.
>>>
>>> Again any help is appreciated.
>>>
>>> Cheers
>>> Mike
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>
>>
>
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list