sound issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 7, 2007, at 4:41 PM, Alessandro R. wrote:

> 2007/12/7, Norman Franke <norman at myasd.com>:
>
>> Depending in how your are connected to the PSTN, you may have to
>> generate the ringing tone yourself.
>
> Is the gateway that generate the ringing tone, isn't it?
> I don't know how I'm connected to the PSTN because I buy this service
> from a provider.

I don't believe it does. Mine (asterisk) does not. It just sends a  
SIP message telling the client you have a call, and the client  
replies back with "I'm ringing".

>> SIP generally will send a
>> "ringing" message, but it's up to the client to provide the tone.
>> Sometimes, I'll get one from the remote side, but that's after the
>> media path is established.
>
> Uhm...I don't understand this paragraph. Can you explain better?

After a call comes in, you do this:

	status = pjsua_call_answer(current_call, 180, NULL, NULL);

which indicates to the other side you are ringing. Similarly, you can  
send 200 to answer, or 480 to reject the call. After you send 180,  
and no media is established (via on_call_media_state), you need  
provide ringing yourself.

>> The PJSUA library has a tone generator you can use to provide this as
>> well as other tones, e.g. dial tone, DTMF, etc.
>
> Let me understand how....Can you send me an example...
> I tried different way without success using python API. :(

I've commented on this before:
http://www.pjsip.org/pipermail/pjsip/2007-January/001778.html

-Norman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20071207/15aec610/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux