PJSIP issue: 500 Internal Server Error

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

 



Hello,

I'm new in pjsip and just migrating sip to pjsip in asterisk pbx.
I have configured the new pjsip in asterisk based on several articles.

Now I would like to configure pjsip to use asterisk
- realtime
- and static configuration file
to accept endpoint registration.

Several endpoints are configured in mysql, and this part is working well
One endpoint is configured in pjsip.conf.

The situation is:
if use only realtime:   it is working
if use only pjsip.conf  it is working

if using both together: 
- realtime endpoints are working well
- the pjsip.conf endpoints are got beack the error message:500 Internal 
Server Error.

Here is the configuration of realtime and pjsip usage:

===========================================================================
===========================================================================
in extconfig.conf
===========================================
ps_endpoints => odbc,dbasterisk
ps_auths => odbc,dbasterisk
ps_aors => odbc,dbasterisk
ps_domain_aliases => odbc,dbasterisk
ps_endpoint_id_ips => odbc,dbasterisk
ps_contacts => odbc,dbasterisk

===========================================================================
===========================================================================
in sorcery.conf
===========================================
[res_pjsip]
endpoint=config,pjsip.conf,criteria=type=endpoint
endpoint=realtime,ps_endpoints
auth=realtime,ps_auths
aor=realtime,ps_aors
domain_alias=realtime,ps_domain_aliases
identify=realtime,ps_endpoint_id_ips

===========================================================================
===========================================================================
in pjsip.conf
===========================================
[pjsiptransport]
type=transport
protocol=udp
bind=0.0.0.0

[6001]
type=endpoint
context=incoming
disallow=all
allow=ulaw
transport=pjsiptransport
auth=auth6001
aors=6001

[auth6001]
type=auth
auth_type=userpass
password=6001
username=6001

[6001]
type=aor
max_contacts=1
default_expiration=30 
maximum_expiration=120 
minimum_expiration=10 
remove_existing=yes 
qualify_frequency=240 
authenticate_qualify=yes 

===========================================================================
===========================================================================
Here is the debuginfo:
===========================================
<--- Received SIP request (554 bytes) from UDP:192.168.127.49:63474 --->
REGISTER sip:192.168.127.13 SIP/2.0
Via: SIP/2.0/UDP 
192.168.127.49:63474;rport;branch=z9hG4bKPj3dfa72f6965e4611a6a4b19ce0d3e816
Route: <sip:192.168.127.13;lr>
Max-Forwards: 70
From: "6001" <sip:6001@local>;tag=85767f168d754f629df3d23a5f599f7f
To: "6001" <sip:6001 at local>
Call-ID: 901f5ddb1f9c4de28c32cf894c0935d4
CSeq: 47795 REGISTER
User-Agent: MicroSIP/3.10.1
Contact: "6001" <sip:6001 at 192.168.127.49:63474;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, 
REFER, MESSAGE, OPTIONS
Content-Length:  0


<--- Transmitting SIP response (387 bytes) to UDP:192.168.127.49:63474 
--->
SIP/2.0 500 Internal Server Error
Via: SIP/2.0/UDP 
192.168.127.49:63474;rport=63474;received=192.168.127.49;branch=z9hG4bKPj3dfa72f6965e4611a6a4b19ce0d3e816
Call-ID: 901f5ddb1f9c4de28c32cf894c0935d4
From: "6001" <sip:6001@local>;tag=85767f168d754f629df3d23a5f599f7f
To: "6001" <sip:6001 at local>;tag=z9hG4bKPj3dfa72f6965e4611a6a4b19ce0d3e816
CSeq: 47795 REGISTER
Content-Length:  0
===========================================================================


Could you please help if it is a configuration error, an asterisk issue or 
some bug in PJSIP?

Thank you in advamce.

Best regards,

Andras







 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151211/5a3111df/attachment.html>
-------------- next part --------------


======================================================

Ebben az e-mailben k?z?lt inform?ci?k bizalmas jelleg?ek. T?j?koztatjuk, hogy a CARDIF Biztos?t? Zrt. ?s a CARDIF ?letbiztos?t? Zrt. jogosult minden e-mail kommunik?ci? monitoroz?s?ra ?s r?gz?t?s?re. Amennyiben nem ?n a lev?l c?mzettje akkor a lev?l tartalm?nak m?s r?sz?re t?rt?n? tov?bb?t?sa, reproduk?l?sa, m?sol?sa, vagy egy?b m?s ?ton t?rt?n? terjeszt?se, felhaszn?l?sa szigor?an tilos. Amennyiben t?ved?sb?l kapta meg ezt az ?zenetet k?rj?k azonnal ?rtes?tse az ?zenet k?ld?j?t.

This is a confidential e-mail. CARDIF Biztos?t? Zrt. and CARDIF ?letbiztos?t? Zrt. may monitor and record all e-mails. If you are not the addressee, any disclosure reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify CARDIF Biztos?t? Zrt. or CARDIF ?letbiztos?t? Zrt. immediately.

======================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151211/5a3111df/attachment-0001.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