[OpenSIPS-Users] Run custom PHP script to send SMS upon receiving invite

Brett Nemeroff brett at nemeroff.com
Sat Jul 24 16:59:02 CEST 2010


The exec module has a huge performance penalty. I'd avoid it if high
performance is required. I don't know anything about your application, but
if the time delay between the invite and the SMS isn't too sensitive, you
could consider using avp_db_query to insert a queued notification to a SMS
message.

Alternatively, you could use avp_db_query with db_http to post a realtime
SMS notification, but you'd need to create a db adapter per db_http; it
shouldn't be too hard at all. The perl module is also very good, but I'm not
sure how up-to-date it is.

-Brett



On Sat, Jul 24, 2010 at 7:48 AM, Laszlo <laszlo at voipfreak.net> wrote:

> Sounds like a bad idea :)
>
> You can try to play with the exec module, see
> http://www.opensips.org/html/docs/modules/1.6.x/exec.html
>
> -Laszlo
>
>
> 2010/7/24 Nauman Sulaiman <nauman762-home at yahoo.co.uk>
>
>>  Hi, using OpenSIPs 1.6, how does one run a custom php script (or
>> whatever code) upon
>> receiving incoming INVITE. We need to perform some custom action ie send
>> SMS message
>> when receiving an INVITE. With asterisk one can use the System function in
>> DialPlan
>> what is the equivalent way with OpensSIPS.
>>
>> Thanks
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100724/a11a1e63/attachment.htm 


More information about the Users mailing list