[pjsip] How to connect beep tone to current call session

Nanang Izzuddin nanang at pjsip.org
Fri Mar 19 10:54:58 CDT 2010


Hi Bharat,

Seems that you are using APS/VAS-Direct. As mentioned in the
APS/VAS-Direct wiki, audio switch cannot mix audio, so sound port can
only listen to one port at a time. In case the sound port is
busy/connected, the behaviour of pjsua_conf_connect(x, 0) will be:
- if the audio param (format, bitrate, clockrate, etc) of port x
matches to sound port, current sound port connection will be released
and the new connection (x -> 0) created
- otherwise, the connection request will be rejected.

So try to release any sound device connection in the audio switch
first before connecting the beep port, and later do the same thing to
return back the call stream port. This will disrupt the audio call as
sound device will be reopened twice and incoming RTP packets are not
consumed during the beep.

BR,
nanang


On Fri, Mar 19, 2010 at 7:03 PM, Bharat Yadav
<bharat.yadav at axisconvergence.com> wrote:
> Hi Nanang
> I am using Symbian and trying to play beep tone as minute minder but when i
> went to connect beep port using "status =
> pjsua_conf_connect(app_config.beep_slot, 0);", it played well when no voip
> call, if any active call no status shows only 220160 or 171140, whats wrong,
> please guide me.
> Thanks and regards
> Bharat
>
> On Fri, Mar 19, 2010 at 4:29 PM, Nanang Izzuddin <nanang at pjsip.org> wrote:
>> Hi Bharat,
>>
>> Not really sure what is the problem as you can play dtmf tones
>> already, now it's just that the trigger is a timer, see
>> pjsua_schedule_timer() perhaps? :)
>>
>> BR,
>> nanang
>>
>>
>> On Tue, Mar 9, 2010 at 4:00 PM, Bharat Yadav
>> <bharat.yadav at axisconvergence.com> wrote:
>>> Hi all
>>>
>>> I want to play beep tone to current call session how to achieve it. I
>>> am able to play dtmf tones, but i requires beep tone for minute
>>> minder.
>>>
>>> Thanks
>>>
>>> Bharat
>>>
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>>
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



More information about the pjsip mailing list