<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    <br>
    The sems example uses variables which are setup at "serweb".
    (email/language/...)<br>
    These should be set in opensips config (maybe taken from database/
    whatever...)<br>
    <br>
    <br>
    There are variables in opensips containing some of the values you
    could use like the request domain / from uri / ...<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://www.opensips.org/Resources/DocsCoreVar16">http://www.opensips.org/Resources/DocsCoreVar16</a><br>
    <br>
    <br>
    here is a simple real life example:<br>
    <br>
    avp_db_query("select email_address FROM subscriber WHERE username =
    '$rU'","$avp(s:677)");<br>
    <br>
    append_hf("P-App-Param:
    eml=$avp(s:677);mod=voicemail;lng=english;snd=$fU;dom=$Ri\r\n");<br>
    <br>
    <br>
    <br>
    <br>
    Best Regards<br>
    <br>
    <br>
    Max M.<br>
    <br>
    <br>
    Am 18.05.2011 19:19, schrieb Steven Pokrandt:
    <blockquote
      cite="mid:BANLkTi=oYj4yH7pprcsvj41iJnwsgMBMHw@mail.gmail.com"
      type="cite"><span style="font-family: arial,sans-serif; font-size:
        medium;">
        <table style="padding: 0px; border-collapse: collapse;
          background-color: rgb(255, 255, 255); width: 878px;"
          cellpadding="0">
          <tbody>
            <tr>
              <td style="margin: 0px; font-family: arial,sans-serif;
                vertical-align: top; padding: 0px;">
                <div style="padding: 0px 0px 1px;">
                  <div>
                    <div style="color: rgb(0, 0, 0); padding: 4px 8px;">
                      <div>
                        <div>
                          <div style="clear: both; padding-bottom: 0px;">
                            <div style="margin-bottom: 10px;
                              border-right: 1px solid rgb(239, 239,
                              239); border-width: 0px 1px 1px;
                              border-style: solid; border-color:
                              rgb(239, 239, 239) rgb(239, 239, 239)
                              rgb(226, 226, 226); width: 629px;">
                              <div style="padding-top: 3px;
                                background-color: rgb(255, 255, 255);
                                border: 1px solid rgb(188, 188, 188);">
                                <div>
                                  <div>
                                    <div>
                                      <div>
                                        <div style="font-size: 13px;
                                          margin: 5px 15px;
                                          padding-bottom: 20px;">
                                          <div>
                                            <div>SEMS docs make it sound
                                              easy to integrate with SER
                                              (opensips?) &nbsp; but opensips
                                              complains about the 2nd
                                              append line. &nbsp;I'm new to
                                              all of this and as you
                                              know it's a steep learning
                                              curve. &nbsp;where do i get the
                                              $t.*, &nbsp;@from.*, @ruri.* &nbsp;
                                              variables set from? &nbsp;is
                                              there a module? &nbsp;do I need
                                              to look them up and assign
                                              them from the DB in
                                              opensips? &nbsp;</div>
                                            <div><br>
                                            </div>
                                            <div><br>
                                            </div>
                                            <div>append_hf("P-App-Name:
                                              voicemail\r\n");</div>
                                            <div>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%|;");</div>
                                            <div><br>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </td>
            </tr>
          </tbody>
        </table>
      </span><br>
      -- <br>
      Steven Pokrandt&nbsp; (425) 686 WABO<br>
      <a moz-do-not-send="true"
        href="http://steven.pokrandt.me/Steven_Pokrandt.vcf"
        target="_blank">http://steven.pokrandt.me/Steven_Pokrandt.vcf</a><br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>