So I will use session_params. Is there a sample somewhere I can use?

-----Original Message-----
From: Stefan Sayer [mailto:[email protected]] 
Sent: Thursday, April 23, 2009 10:20 AM
To: Ali Asgari
Cc: [email protected]
Subject: Re: [Semsdev] DBDialer

Hi,


o Ali Asgari [04/22/09 21:18]:
> Hi,
> 
>  
> 
> I want to create a dialer. Application should call A and play a wav 
> file. A will punch 1 or 9 which will hit dialer as DTMF. If DTMF is 9, 
> call should be dropped. If DTMF is 1, application should place call B 
> and connect A to B and SEMS should not be in media channel after this 
oh, that sounds like spit... :(

> point. Database table is like this:
> 
>  
> 
> | PhonenumberA |  Wavfilename |  PhonenumberB |
> 
> | 14161111111    |  Bank.wav     |   14162222222   |
> 
> | 14161111111    |Realstate.wav |   14167777777   |
> 
> | 14162222222    |Realstate.wav |   14165555555   |
> 
>  
> 
> In my code, I used run() to query database and place calls out 
> (AmUAC::dialout)  in a loop. In onSessionStart() I am going to play 
> files to A. The issue that I have here is that I don't know which file I 
> should play. If you notice to column PhonenumberA, there  are two phone 
> number that are same. I wished I could add extra information in SIP 
> message when I am dialing out and I could retrive them when I am in 
> onSessionStart().
additionally to session_params whilch Raphael pointed out you could also 
use 'user' in AmUAC::dialout, which appears as req.user, but may also 
show up in the contact header.

Stefan

> 
>  
> 
> 1-    Is there any better way for dialer using sems?
> 
> 2-       Am I doing it in a right way?
> 
> 3-       Can SEMS generate CDR?
> 
>  
> 
>  
> 
> Thanks
> 
> Ali
> 
> ------------------------------------------------------------------------
>   This electronic message contains information from Primus 
> Telecommunications Canada Inc. ("PRIMUS") , which may be legally 
> privileged and confidential. The information is intended to be for the 
> use of the individual(s) or entity named above. If you are not the 
> intended recipient, be aware that any disclosure, copying, distribution 
> or use of the contents of this information is prohibited. If you have 
> received this electronic message in error, please notify us by telephone 
> or e-mail (to the number or address above) immediately. Any views, 
> opinions or advice expressed in this electronic message are not 
> necessarily the views, opinions or advice of PRIMUS. It is the 
> responsibility of the recipient to ensure that any attachments are virus 
> free and PRIMUS bears no responsibility for any loss or damage arising 
> in any way from the use thereof.The term "PRIMUS" includes its affiliates.
> ------------------------------------------------------------------------
>  Pour la version en français de ce message, veuillez voir
> http://www.primustel.ca/fr/legal/cs.htm 
> <http://www.primustel.ca/fr/legal/cs.htm>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Semsdev mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/semsdev

-- 
Stefan Sayer
VoIP Services

[email protected]
www.iptego.com

IPTEGO GmbH
Wittenbergplatz 1
10789 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
--------------------------------------------------------

 This electronic message contains information from Primus Telecommunications 
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential. The 
information is intended to be for the use of the individual(s) or entity named 
above. If you are not the intended recipient, be aware that any disclosure, 
copying, distribution or use of the contents of this information is prohibited. 
If you have received this electronic message in error, please notify us by 
telephone or e-mail (to the number or address above) immediately. Any views, 
opinions or advice expressed in this electronic message are not necessarily the 
views, opinions or advice of PRIMUS. It is the responsibility of the recipient 
to ensure that any attachments are virus free and PRIMUS bears no 
responsibility for any loss or damage arising in any way from the use 
thereof.The term "PRIMUS" includes its affiliates.
--------------------------------------------------------

 Pour la version en français de ce message, veuillez voir
http://www.primustel.ca/fr/legal/cs.htm
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to