[Wengophone-devel] Simple call API
hi all, I'm always working on my little application wich has for goal to simply call someone, without graphical code... So, I compiled Global.lib Exosip.lib Osip.lib Ortp.lib netlib.lib and several codecs like speex.lib, ilbc.lib,gsm.lib, etc.. Now, I'd like to realise a simple main() to call somone... What I think I need, and I should to is: Configure Phconfig struct call Phinit() call phaddauthinfo call PhaddVline (I don't really well understand what is a Vline, if someone can telle me brievouisly...i'm lost with the cid concept) call phlineplacecall ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
[Wengophone-devel] Simple call API
hi all, I'm always working on my little application wich has for goal to simply call someone, without graphical code... So, I compiled Global.lib Exosip.lib Osip.lib Ortp.lib netlib.lib and several codecs like speex.lib, ilbc.lib,gsm.lib, etc.. Now, I'd like to realise a simple main() to call somone... What I think I need, and I should to is: Configure Phconfig struct call Phinit() call phaddauthinfo call PhaddVline (I don't really well understand what is a Vline, if someone can telle me brievouisly...i'm lost with the cid concept) call phlineplacecall call phterminate... Am I right or not?! And have I forget any important Librairies I should need to realise my simple API...?! I interrested about all advice and suggestion... Thanks in advance. regards ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
Re: [Wengophone-devel] Simple call API
jérémie HUYGHE wrote: hi all, I'm always working on my little application wich has for goal to simply call someone, without graphical code... So, I compiled Global.lib Exosip.lib Osip.lib Ortp.lib netlib.lib and several codecs like speex.lib, ilbc.lib,gsm.lib, etc.. Now, I'd like to realise a simple main() to call somone... What I think I need, and I should to is: Configure Phconfig struct call Phinit() call phaddauthinfo call PhaddVline (I don't really well understand what is a Vline, if someone can telle me brievouisly...i'm lost with the cid concept) call phlineplacecall You can take a look on wifo/miniua/minua.c for simple command line softphone application example. Vline is a Virtual Phone Line, which specifiies coordinates of your SIP provider (server, and proxy) and a name you use to regsiter with the provider... cid is callId You can place several simultaneous calls, cid discrimnates between them. Vadim ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
Re: [Wengophone-devel] Enabling VAD/CNG context based
Cantemir Mihu wrote: Hello, is it possible to enable VAD/CNG only if CNG was negotiated between both parties? If yes, how? When I test it now, if I enable VAD/CNG on one side and call another who does not support this feature, the first side has VAD enabled and does not send voice packets, which on the other side appears very annoying. The first side should disable VAD if CNG payload was not negotiated. Thanks for your help. Normally phApi tries to negotiatie the CNG payload... take a look in ph_call_retreive_payloads but frankly this is note very well tested Vadim -- Best regards / Mit freundlichen Grüssen Cantemir Mihu ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel
Re: [Wengophone-devel] Enabling VAD/CNG context based
Hello,this is what I did to enable VAD only if the CNG payload was negotiated:in ph_call_media_start() I changed if (phcfg.vad 0x8000)to if ((phcfg.vad 0x8000) ca-cng)Additional, in ph_call_retrieve_payloads() I changedca-cng = !eXosip_retrieve_negotiated_specific_payload(ca-did, PH_MEDIA_CN_PT_STR, strlen(PH_MEDIA_CN_PT_STR)); toca-cng = (eXosip_retrieve_negotiated_specific_payload(ca-did, PH_MEDIA_CN_PT_STR, strlen(PH_MEDIA_CN_PT_STR)) != -1);But this should work either way. What I noticed about CNG, is that in the function ph_generate_comfort_noice(), ret = audio_stream_get_out_space(stream, used); always returns -19952 and thus exits with IOCTL error and it does not generate a CNG noise.What could be the cause and solution of this? On 3/29/06, Vadim Lebedev [EMAIL PROTECTED] wrote: Cantemir Mihu wrote: Hello, is it possible to enable VAD/CNG only if CNG was negotiated between both parties? If yes, how? When I test it now, if I enable VAD/CNG on one side and call another who does not support this feature, the first side has VAD enabled and does not send voice packets, which on the other side appears very annoying. The first side should disable VAD if CNG payload was not negotiated. Thanks for your help.Normally phApi tries to negotiatie the CNG payload...take a look in ph_call_retreive_payloadsbut frankly this is note very well testedVadim -- Best regards / Mit freundlichen Grüssen Cantemir Mihu ___Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel-- Best regards / Mit freundlichen GrüssenCantemir Mihu ___ Wengophone-devel mailing list Wengophone-devel@lists.openwengo.com http://dev.openwengo.com/mailman/listinfo/wengophone-devel