Extention problem

Hi forum!

I have problem with my extension configuration.

I played with SIP PJSIP and after that I had this:
ERROR[6725][C-00000000]: pbx.c:4405 ast_func_read: Function PJSIP_DIAL_CONTACTS not registered

In my config file I see this:
exten => dstring,n,GotoIf($["${THISDIAL:0:5}"!=“PJSIP”]?doset)
exten => dstring,n,Noop(Debug: Found PJSIP Destination ${THISDIAL}, updating with PJSIP_DIAL_CONTACTS)
exten => dstring,n,Set(THISDIAL=${PJSIP_DIAL_CONTACTS(${THISDIAL:6})})

How can I fix it, please?

Thank you in advance,
Ivan

What version of Asterisk are you using? Did you manually compile pjproject or use bundled? Does the console output at startup show PJSIP being loaded?

Hi JColp,

Thank you for you response,

  1. Asterisk 13.6.0
  2. manually
    3)No pj chain is not loaded. More over in modules.conf I put pj modules in status noload

Thank you again!
Ivan

Umm, If you noload the pjsip modules then you won’t be able to use the functions associated with them.

You either need to load the module or not use that function.

Thank you for your advise John!

Yes.I don’t what to use pjsip. I tried and decided not to. But how can I modify my extension.conf file back, please? Could you help me, please? What should I use for sip instead configuration I showed above.

Thank you in advance

Without your dialplan and a description of what you are trying to do I can’t give you any advice on how to do it.

The PJSIP_DIAL_CONTACTS is pjsip specific, there is no alike function for chan_sip.

Thank you John again!

How can I send my configs to here? it is quite big.

Ta

You just need to paste in the relevant context that you are working with as a reply.

Make sure to highlight it and use the Formatted Text button to keep it in tact after you paste it in.