[OpenSIPS-Users] opensips => SEMS(voicemail)
Max Mühlbronner
mm at 42com.com
Thu May 19 11:40:51 CEST 2011
Hi,
The sems example uses variables which are setup at "serweb".
(email/language/...)
These should be set in opensips config (maybe taken from database/
whatever...)
There are variables in opensips containing some of the values you could
use like the request domain / from uri / ...
http://www.opensips.org/Resources/DocsCoreVar16
here is a simple real life example:
avp_db_query("select email_address FROM subscriber WHERE username =
'$rU'","$avp(s:677)");
append_hf("P-App-Param:
eml=$avp(s:677);mod=voicemail;lng=english;snd=$fU;dom=$Ri\r\n");
Best Regards
Max M.
Am 18.05.2011 19:19, schrieb Steven Pokrandt:
> SEMS docs make it sound easy to integrate with SER (opensips?) but
> opensips complains about the 2nd append line. I'm new to all of this
> and as you know it's a steep learning curve. where do i get the $t.*,
> @from.*, @ruri.* variables set from? is there a module? do I need
> to look them up and assign them from the DB in opensips?
>
>
> append_hf("P-App-Name: voicemail\r\n");
> append_hf("P-App-Param:
> mod=%$t.voicemail%|;eml='%$t.email%|';usr=%@ruri.user%|;snd='%@from.uri%|';dom=%@ruri.host%|;uid=%$t.uid%|;did=%$t.did%|;");
>
>
> --
> Steven Pokrandt (425) 686 WABO
> http://steven.pokrandt.me/Steven_Pokrandt.vcf
>
>
> _______________________________________________
> 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/20110519/818ce7c1/attachment.htm>
More information about the Users
mailing list