Link to home
Start Free TrialLog in
Avatar of Muhammad Atif Ramzan
Muhammad Atif Ramzan

asked on

Integration of Kamailio With Asterisk Issue

Hello All,

I have integrated Kamailio 4.4 with asterisk 13 LTS and I think its been properly integrated. It also shows me the registered users but when i call from 101 to 102 it gives me the below error

[May  7 12:43:14] NOTICE[19838][C-00000000]: chan_sip.c:25545 handle_request_invite: Call from '101' (192.168.56.103:5060) to extension '102' rejected because extension not found in context 'public'.

I have followed the below for installation and configuration.

http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb

The user database is fetching from remote host in which kamailio has been installed. Users are showing in asterisk node as well

asterisk*CLI> sip show users
Username                   Secret           Accountcode      Def.Context      ACL  Forcerport
101                                                          public           No   No
102                                                          public           No   No

So how can i debug this or is there any clue that what might be wrong. Please find below  the extension.conf details as well.

exten => _1XX,1,Dial(SIP/${EXTEN})
exten => _1XX,n,Voicemail(${EXTEN},u)
exten => _1XX,n,Hangup
exten => _1XX,101,Voicemail(${EXTEN},b)
exten => _1XX,102,Hangup

Thanks and looking forward for some clues from this community

Regards,
Atif Ramzan
Avatar of noci
noci

not mentioned in the manual but the exten=> rules need to be below the [public] header
Avatar of Muhammad Atif Ramzan

ASKER

Hello Noci,

I have added this earlier and that solved my problem. thanks.

Regards,
Atif Ramzan
no problem.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.