<div dir="ltr"><div><br clear="all"><span style="background-color: rgb(230, 236, 249);">Hi List,</span><br><br>I want to use text file to get password information with Authenticate Application. I am using asterisk 1.6.2.11. I made text file at /tmp/pass.txt with below information.<br>
<br><b>pass.txt</b><br><br></div><span style="background-color: rgb(230, 236, 249);"></span>Virendra: 81dc9bdb52d04dc20036dbd8313ed055<br>Vijay : 9996535e07258a7bbfd8b132435c5962<br>Virendra Bhati: 7bccfde7714a1ebadf06c5f4cea752c1<br>
<b><br>SIP.conf :-<br><br>[2218]</b><br>type=friend<br>secret=******<br>callerid="Virendra" <9172341457><br>host=dynamic ; This device needs to register<br>nat=yes ; X-Lite is behind a NAT router<br>
canreinvite=no ; Typically set to NO if behind NAT<br>disallow=all<br>dtmfmode=inband<br>allow=speex<br>allow=ulaw<br>allow=alaw<br>allow=gsm ; GSM consumes far less bandwidth than ulaw<br>
insecure=invite,port<br>context=bhati-test<br>qualify=yes<br>accountcode=Virendra<b><br><br></b><b>extensions.conf</b><br><br>[bhati-test]<br><br>exten => 1234,1,Answer()<br><br> same => n,NoOp(Welcome to WaveCrest Conferencing Soultion)<br>
same => n,playback(WC)<br> same => n,Authenticate(/tmp/pass.txt,am,5)<br> same => n,MeetMe(1234,Mp)<br> same => n,Hangup()<br><br><b>CLI output:-<br><br></b><span style="color: rgb(102, 0, 0);"> == Using SIP RTP CoS mark 5</span><br style="color: rgb(102, 0, 0);">
<span style="color: rgb(102, 0, 0);"> -- Executing [1234@bhati-test:1] Answer("SIP/2218-0000064f", "") in new stack</span><br style="color: rgb(102, 0, 0);"><span style="color: rgb(102, 0, 0);"> -- Executing [1234@bhati-test:2] NoOp("SIP/2218-0000064f", "Welcome to WaveCrest Conferencing Soultion") in new stack</span><br style="color: rgb(102, 0, 0);">
<span style="color: rgb(102, 0, 0);"> -- Executing [1234@bhati-test:3] Playback("SIP/2218-0000064f", "WC") in new stack</span><br style="color: rgb(102, 0, 0);"><span style="color: rgb(102, 0, 0);"> -- <SIP/2218-0000064f> Playing 'WC.gsm' (language 'en')</span><br style="color: rgb(102, 0, 0);">
<span style="color: rgb(102, 0, 0);"> -- Executing [1234@bhati-test:4] Authenticate("SIP/2218-0000064f", "/tmp/pass.txt,am,5") in new stack</span><br style="color: rgb(102, 0, 0);"><span style="color: rgb(102, 0, 0);"> -- <SIP/2218-0000064f> Playing 'agent-pass.ulaw' (language 'en')</span><br style="color: rgb(102, 0, 0);">
<span style="color: rgb(102, 0, 0);"> -- <SIP/2218-0000064f> Playing 'auth-incorrect.ulaw' (language 'en')</span><br style="color: rgb(102, 0, 0);"><span style="color: rgb(102, 0, 0);"> -- <SIP/2218-0000064f> Playing 'auth-incorrect.ulaw' (language 'en')</span><br style="color: rgb(102, 0, 0);">
<span style="color: rgb(102, 0, 0);"> -- <SIP/2218-0000064f> Playing 'vm-goodbye.ulaw' (language 'en')</span><br style="color: rgb(102, 0, 0);"><span style="color: rgb(102, 0, 0);"> == Spawn extension (bhati-test, 1234, 4) exited non-zero on 'SIP/2218-0000064f'</span><br style="color: rgb(102, 0, 0);">
<span style="color: rgb(102, 0, 0);"></span><br style="color: rgb(102, 0, 0);">Please help me where I am wrong <br><br></div>