Discussion:
simple call, play sound and hang up !
David CHANIAL
2007-07-24 14:16:08 UTC
Permalink
Hi,

Excuse if is not the place to post this kind of messages and please excuse my
bad english (i'm french).

i am searching to use a : "command line SIP client able to register on a sip
box (asterisk) dial a number, play a sound, hang up, and disconnect".

I have downloaded pjsip but i am not sure to choose the good options to make
this.

does someone can help me ?

Best regards,
--
David
_______________________________________________
pjsip mailing list: ***@pjsip.org
http://pjsip.org/mailman/listinfo/pjsip

Visit pjsip blog: http://blog.pjsip.org
Juozas Dovydaitis
2007-07-24 15:16:19 UTC
Permalink
Hi, look here:
http://www.pjsip.org/pjsip/docs/html/page_pjsip_samples_pjsua.htm

You can register, make a call, hang up and disconnect. I think you can
play a sound using this: --play-file=file
Post by David CHANIAL
Hi,
Excuse if is not the place to post this kind of messages and please excuse my
bad english (i'm french).
i am searching to use a : "command line SIP client able to register on a sip
box (asterisk) dial a number, play a sound, hang up, and disconnect".
I have downloaded pjsip but i am not sure to choose the good options to make
this.
does someone can help me ?
Best regards,
_______________________________________________
pjsip mailing list: ***@pjsip.org
http://pjsip.org/mailman/listinfo/pjsip

Visit pjsip blog: http://blog.pjsip.org
David CHANIAL
2007-07-25 01:55:53 UTC
Permalink
Post by Juozas Dovydaitis
You can register, make a call, hang up and disconnect. I think you can
play a sound using this: --play-file=file
Thanks,

But now :

pjsua_acc.c SIP registration error: No suitable credential
(PJSIP_ENOCREDENTIAL) [status=171101]

Sure, i have checked the credential, they are ok...
Why i get 401 each times with pjsua

Best regards,
--
David

_______________________________________________
pjsip mailing list: ***@pjsip.org
http://pjsip.org/mailman/listinfo/pjsip

Visit pjsip blog: http://blog.pjsip.org
Juozas Dovydaitis
2007-07-25 06:57:39 UTC
Permalink
Your SIP server doesn't have functionality that you need?
Post by David CHANIAL
Post by Juozas Dovydaitis
You can register, make a call, hang up and disconnect. I think you can
play a sound using this: --play-file=file
Thanks,
pjsua_acc.c SIP registration error: No suitable credential
(PJSIP_ENOCREDENTIAL) [status=171101]
Sure, i have checked the credential, they are ok...
Why i get 401 each times with pjsua
Best regards,
_______________________________________________
pjsip mailing list: ***@pjsip.org
http://pjsip.org/mailman/listinfo/pjsip

Visit pjsip blog: http://blog.pjsip.org
David CHANIAL
2007-07-25 07:34:13 UTC
Permalink
Post by Juozas Dovydaitis
Your SIP server doesn't have functionality that you need?
At now, i do not ask for a functionnality to my SIP server :

./pjsip-apps/bin/pjsua-i686-pc-linux-gnu \
--id sip:***@192.168.1.1 \
--registrar sip:192.168.1.1 \
--proxy sip:192.168.1.1 \
--username testuser \
--password testpass \
sip:***@192.168.1.1


[...]
SIP/2.0 401 Unauthorized
[...]
SIP registration error: No suitable credential (PJSIP_ENOCREDENTIAL)
[status=171101]
[...]

As i said, with a simple softphone (as kphone), i am able to register and make
calls.

So, does pjsua use an authentification method which can make failed the
REGISTER ?

Best regards,
--
David


_______________________________________________
pjsip mailing list: ***@pjsip.org
http://pjsip.org/mailman/listinfo/pjsip

Visit pjsip blog: http://blog.pjsip.org
Benny Prijono
2007-07-27 04:55:35 UTC
Permalink
Post by David CHANIAL
SIP registration error: No suitable credential (PJSIP_ENOCREDENTIAL)
[status=171101]
[...]
Please see this page for the description of pjsip error codes:
http://www.pjsip.org/pjsip/docs/html/group__PJSIP__CORE__ERRNO.htm

Basically you need to specify a correct realm for each of your
credentials. Or if you use the SVN trunk version, you can set the
realm to "*" to make your credential valid for any realms in the
challenge.

cheers,
-benny



_______________________________________________
pjsip mailing list: ***@pjsip.org
http://pjsip.org/mailman/listinfo/pjsip

Visit pjsip blog: http://blog.pjsip.org
David CHANIAL
2007-07-27 08:01:16 UTC
Permalink
Post by Benny Prijono
Basically you need to specify a correct realm for each of your
credentials. Or if you use the SVN trunk version, you can set the
realm to "*" to make your credential valid for any realms in the
challenge.
Thanks,

It seems to solve my authentication problem.

Best regards,
--
David


_______________________________________________
pjsip mailing list: ***@pjsip.org
http://pjsip.org/mailman/listinfo/pjsip

Visit pjsip blog: http://blog.pjsip.org
Continue reading on narkive:
Loading...