first thing to do is <br>switch =>Realtime/@ <br><br>then closely check which extension ur dialing.....<br>means length of extension u define in appdata 00XXXXXX<br>its length is 8 and if u dialed and extension greater then 8 or less then 8 then u cant go through...<br>
for simplcity u check it with <br>appdata: SIP/_X.@PSTN GAteway<br>or <br>appdata: SIP/_.@PSTN GAteway<br><br>i am not sure about _. work in this scenario.<br><br>u must apply appdata:SIP/${EXTEN}@pstn gatwway<br>our use any variable which holds ur dialed no .<br>
<br><br><br><br><div class="gmail_quote">On Tue, Mar 3, 2009 at 4:09 AM, michel freiha <span dir="ltr"><<a href="mailto:michofr@gmail.com">michofr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi all,<br><br>I'm using asterisk in real time mode...My extensions.conf table contains:<br><br>[default]<br>switch => Realtime/default@extensions<br><br>I have added the following to extensions.conf table;<br>
<br>context:micho<br>exten: _X.<br>priority: 1<br>app:Dial<br>appdata: SIP/00XXXXXX@PSTN GAteway<br><br>Asterisk server is connected succeffully to database...As soon as i make a call i got the following error message:<br>
<br>[Mar 3 00:52:02] NOTICE[2898]: chan_sip.c:14386 handle_request_invite: Call from 'username' to extension '00XXXX' rejected because extension not found.<br><br>I'm dialing from an extension registered on asterisk with context micho<br>
<br>Any clue?<br><br>Regarda<br><br></div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards <br><br>Yawar Hadi Noshahi<br>
Software Engineer<br> NGI Islamabad <br>(+92-0300-5504798)<br>