[Users] sl_send_reply with avp parameter

Daniel-Constantin Mierla daniel at voice-system.ro
Thu May 10 11:34:02 CEST 2007


Hello,

On 05/10/07 12:18, Sigrid Thijs wrote:
> I forgot to mention we are using openser version 1.1.1
use 1.2.0 and you will be able to do it.

Cheers,
Daniel

>
> kind regards,
>
> Sigrid
>
> Sigrid Thijs wrote:
>> Hi,
>>
>> I was wondering if it's possible to create an openser script to 
>> automatically send an error response when an INVITE request for a 
>> specific SIP URI is received.
>> For example, an INVITE to "sip:e403 at domain" would return a 403 response,
>> and requests to "sip:eXYZ at domain.com" would return a XYZ response.
>>
>> I've tried using avp:
>>
>> # get username
>> avp_printf ( "$avp(i:2)", "$oU" );
>> # get error code
>> avp_subst ("$avp(i:2)", "/e*/\1/" );
>> # send reply
>> sl_send_reply ( "$avp(i:2)", "Error" );
>>
>> But apparently it's not allowed to pass an avp parameter to the 
>> sl_send_reply function.
>>
>> Is there another way to accomplish this?
>>
>> kind regards,
>>
>> Sigrid Thijs
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the sr-users mailing list