[OpenSIPS-Users] Call Forward on Busy but not to feature server

Mike O'Connor mike at oeg.com.au
Fri Jan 8 10:46:46 CET 2010


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
>>   
>>     
>
>   




More information about the Users mailing list