Issue with PJSIP

Hello,

I am moving from sip to pjsip. I am working on Openwrt(linux distro) and asterisk 13 is installed.

I am having following error


[Sep 13 04:14:12] WARNING[8107][C-00000002]: channel.c:6086 ast_request: No channel type registered for 'PJSIP'
[Sep 13 04:14:12] WARNING[8107][C-00000002]: app_dial.c:2429 dial_exec_full: Unable to create channel of type 'PJSIP' (cause 66 - Channel not implemented)

I also check files in /usr/lib/astersk/modules. It has all the res_pjsip related modules.

I also tried module load res_pjsip, but it did not work and got following error

Unable to load module res_pjsip
Command 'module load res_pjsip' failed.

In asterisk CLI, pjsip commands are not working.

can somebody help me with this?

Thanks.

Hello,
did you compile it with “–with-pjproject-bundled” and try to re-install it. And then unload chan_sip.so.
Cheers

In addition to what ycaner said, could you recall the following:

  • Have you installed PJProject at all? If yes, which version?
  • Have you enabled PJSIP driver in “make menuselect”?

Thanks @ycaner and @Pentium-5 for your reply.

Yes, I tried ‘–with-pjproject-bundled’ and I have pjproject in my asterisk under third-party directory.

I am building openwrt with asterisk using makfiles and the asterisk is configured with default pjproject’s makefile.
I am not installing asterisk and pjproject manually.

Is there any way I can see that pjsip is installed or not?? ( because while building openwrt, I can see that it has installed the pjsip)

Also, --with-pjproject-bundled is giving me follwoing error sometime.

./configure: line 24158: syntax error near unexpected token `$PJPROJECT_DIR'
./configure: line 24158: `       PJPROJECT_CONFIGURE($PJPROJECT_DIR)'

Following is the output of the module show like pj

iobot-010C*CLI> module show like pj
Module                         Description                              Use Count  Status      Support Level
chan_pjsip.so                  PJSIP Channel Driver                     0          Not Running          core
func_pjsip_endpoint.so         Get information about a PJSIP endpoint   0          Running              core
res_pjsip.so                   Basic SIP resource                       0          Not Running          core
res_pjsip_acl.so               PJSIP ACL Resource                       0          Not Running          core
res_pjsip_authenticator_digest.so PJSIP authentication resource            0          Not Running          core
res_pjsip_caller_id.so         PJSIP Caller ID Support                  0          Not Running          core
res_pjsip_dialog_info_body_generator.so PJSIP Extension State Dialog Info+XML Pr 0          Not Running          core
res_pjsip_diversion.so         PJSIP Add Diversion Header Support       0          Not Running          core
res_pjsip_dtmf_info.so         PJSIP DTMF INFO Support                  0          Not Running          core
res_pjsip_endpoint_identifier_anonymous.so PJSIP Anonymous endpoint identifier      0          Not Running          core
res_pjsip_endpoint_identifier_ip.so PJSIP IP endpoint identifier             0          Not Running          core
res_pjsip_endpoint_identifier_user.so PJSIP username endpoint identifier       0          Not Running          core
res_pjsip_exten_state.so       PJSIP Extension State Notifications      0          Not Running          core
res_pjsip_header_funcs.so      PJSIP Header Functions                   0          Not Running          core
res_pjsip_logger.so            PJSIP Packet Logger                      0          Not Running          core
res_pjsip_messaging.so         PJSIP Messaging Support                  0          Not Running          core
res_pjsip_multihomed.so        PJSIP Multihomed Routing Support         0          Not Running          core
res_pjsip_mwi.so               PJSIP MWI resource                       0          Not Running          core
res_pjsip_mwi_body_generator.so PJSIP MWI resource                       0          Not Running          core
res_pjsip_nat.so               PJSIP NAT Support                        0          Not Running          core
res_pjsip_notify.so            CLI/AMI PJSIP NOTIFY Support             0          Not Running          core
res_pjsip_one_touch_record_info.so PJSIP INFO One Touch Recording Support   0          Not Running          core
res_pjsip_outbound_authenticator_digest.so PJSIP authentication resource            0          Not Running          core
res_pjsip_outbound_publish.so  PJSIP Outbound Publish Support           0          Not Running       unknown
res_pjsip_outbound_registration.so PJSIP Outbound Registration Support      0          Not Running          core
res_pjsip_path.so              PJSIP Path Header Support                0          Not Running          core
res_pjsip_pidf_body_generator.so PJSIP Extension State PIDF Provider      0          Not Running          core
res_pjsip_pidf_digium_body_supplement.so PJSIP PIDF Digium presence supplement    0          Not Running          core
res_pjsip_pidf_eyebeam_body_supplement.so PJSIP PIDF Eyebeam supplement            0          Not Running          core
res_pjsip_publish_asterisk.so  PJSIP Asterisk Event PUBLISH Support     0          Not Running       unknown
res_pjsip_pubsub.so            PJSIP event resource                     0          Not Running          core
res_pjsip_refer.so             PJSIP Blind and Attended Transfer Suppor 0          Not Running          core
res_pjsip_registrar.so         PJSIP Registrar Support                  0          Not Running          core
res_pjsip_registrar_expire.so  PJSIP Contact Auto-Expiration            0          Not Running          core
res_pjsip_rfc3326.so           PJSIP RFC3326 Support                    0          Not Running          core
res_pjsip_sdp_rtp.so           PJSIP SDP RTP/AVP stream handler         0          Not Running          core
res_pjsip_send_to_voicemail.so PJSIP REFER Send to Voicemail Support    0          Not Running          core
res_pjsip_session.so           PJSIP Session resource                   0          Not Running          core
res_pjsip_t38.so               PJSIP T.38 UDPTL Support                 0          Not Running          core
res_pjsip_transport_websocket.so PJSIP WebSocket Transport Support        0          Not Running          core
res_pjsip_xpidf_body_generator.so PJSIP Extension State PIDF Provider      0          Not Running          core

I think asterisk doesnt support OpenWrt. all i can say