Hello,
I'm using PJSIP on android 4.4.2. I'm not able to make any calls to the
above said device. I'm using the PJSIP on Ubuntu in the other device. Upon
verification from Wireshark packet capture in the linux device it seems
that the port (port 5060) on the android device is not reachable.
Upon searching in the internet, i found that it may be solved by using
different port other than 5060. If this is the solution, then kindly let me
know how to change the port in PJSIP.
If above said solution is not true then kindly let me know if there is any
other way around.
--
Thanks and Regards
~ Lokesh Bhat
Hi Lokesh,
Changing a port with PJSIP is really easy. You can do it this way :
private
TransportConfig
transportConfig
;
transportConfig
=
new
TransportConfig()
;
transportConfig
.setPort(
myPort
)
;
endpoint
.libInit(
epConfig
)
;
endpoint
.transportCreate(pjsip_transport_type_e.
PJSIP_TRANSPORT_UDP
,
transportConfig
)
;
endpoint
.libStart()
;
And don’t forget to call the delete method when you don’t need anymore the object. Let me know if it’s working.
Cheers,
Fanilo Gabaud
Sent from
https://polymail.io/?utm_source=polymail&utm_medium=referral&utm_campaign=signature
On jeu. 22 sept. 2016 at 12:46 Lokesh Bhat
<
mailto:Lokesh Bhat lokeshbhat1991@gmail.com
wrote:
a, pre, code, a:link, body { word-wrap: break-word !important; }
Hello,
I'm using PJSIP on android 4.4.2. I'm not able to make any calls to the above said device. I'm using the PJSIP on Ubuntu in the other device. Upon verification from Wireshark packet capture in the linux device it seems that the port (port 5060) on the android device is not reachable.
Upon searching in the internet, i found that it may be solved by using different port other than 5060. If this is the solution, then kindly let me know how to change the port in PJSIP.
If above said solution is not true then kindly let me know if there is any other way around.
--
Thanks and Regards
~ Lokesh Bhat
Visit our blog:
http://blog.pjsip.org
pjsip mailing list
mailto:pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Hello Fanilo Gabaud, thank you for your kind suggestion.
I have developed the android apk as described in PJSIP website.
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
above is the link to build the android apk.
We have modified the source code to our requirement which is in C and the
java conversion was taken by 'swig' and 'android ndk' and the apk
generation using android studio.
From the solution which you have mentioned which is in Java format, I'm not
quite able to follow. Will be very happy to follow any other lead.
On Thu, Sep 22, 2016 at 5:59 PM, Fanilo Gabaud fanilo@aircall.io wrote:
Hi Lokesh,
Changing a port with PJSIP is really easy. You can do it this way :
private TransportConfig transportConfig;
transportConfig = new TransportConfig();
transportConfig.setPort(myPort);
endpoint.libInit(epConfig);
endpoint.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_UDP, transportConfig);
endpoint.libStart();
And don’t forget to call the delete method when you don’t need anymore the
object. Let me know if it’s working.
Cheers,
Fanilo Gabaud
Sent from Polymail
https://polymail.io/?utm_source=polymail&utm_medium=referral&utm_campaign=signature
On jeu. 22 sept. 2016 at 12:46 Lokesh Bhat <Lokesh Bhat
<Lokesh+Bhat+%3Clokeshbhat1991@gmail.com%3E>> wrote:
Hello,
I'm using PJSIP on android 4.4.2. I'm not able to make any calls to the
above said device. I'm using the PJSIP on Ubuntu in the other device. Upon
verification from Wireshark packet capture in the linux device it seems
that the port (port 5060) on the android device is not reachable.
Upon searching in the internet, i found that it may be solved by using
different port other than 5060. If this is the solution, then kindly let me
know how to change the port in PJSIP.
If above said solution is not true then kindly let me know if there is
any other way around.
--
Thanks and Regards
~ Lokesh Bhat
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
Thanks and Regards
~ Lokesh Bhat
Thank you all for you kind suggestions. We found the solution to this
problem. When we import the project to android studio, somehow it defines
port 6000 for SIP. So when we are calling from the other devices we have to
call the port 6000. Otherwise you can change that port 6000 to 5060. This
definition is done in MyApp.java.
On Thu, Sep 22, 2016 at 6:37 PM, Lokesh Bhat lokeshbhat1991@gmail.com
wrote:
Hello Fanilo Gabaud, thank you for your kind suggestion.
I have developed the android apk as described in PJSIP website.
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
above is the link to build the android apk.
We have modified the source code to our requirement which is in C and the
java conversion was taken by 'swig' and 'android ndk' and the apk
generation using android studio.
From the solution which you have mentioned which is in Java format, I'm
not quite able to follow. Will be very happy to follow any other lead.
On Thu, Sep 22, 2016 at 5:59 PM, Fanilo Gabaud fanilo@aircall.io wrote:
Hi Lokesh,
Changing a port with PJSIP is really easy. You can do it this way :
private TransportConfig transportConfig;
transportConfig = new TransportConfig();
transportConfig.setPort(myPort);
endpoint.libInit(epConfig);
endpoint.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_UDP, transportConfig);
endpoint.libStart();
And don’t forget to call the delete method when you don’t need anymore
the object. Let me know if it’s working.
Cheers,
Fanilo Gabaud
Sent from Polymail
https://polymail.io/?utm_source=polymail&utm_medium=referral&utm_campaign=signature
On jeu. 22 sept. 2016 at 12:46 Lokesh Bhat <Lokesh Bhat
<Lokesh+Bhat+%3Clokeshbhat1991@gmail.com%3E>> wrote:
Hello,
I'm using PJSIP on android 4.4.2. I'm not able to make any calls to the
above said device. I'm using the PJSIP on Ubuntu in the other device. Upon
verification from Wireshark packet capture in the linux device it seems
that the port (port 5060) on the android device is not reachable.
Upon searching in the internet, i found that it may be solved by using
different port other than 5060. If this is the solution, then kindly let me
know how to change the port in PJSIP.
If above said solution is not true then kindly let me know if there is
any other way around.
--
Thanks and Regards
~ Lokesh Bhat
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
Thanks and Regards
~ Lokesh Bhat
--
Thanks and Regards
~ Lokesh Bhat