<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.3.2">
</HEAD>
<BODY>
Hiii ; actually you are not allowing any codecs in the sip.conf neither alaw nor ulaw<BR>
<BR>
so try this to all phones in sip.conf or put it in the general context (allow=all)<BR>
<BR>
<FONT COLOR="#000000">[2011]</FONT>
<PRE>
<FONT COLOR="#000000"> type=friend</FONT>
<FONT COLOR="#000000"> username=2011</FONT>
<FONT COLOR="#000000"> secret=1945</FONT>
<FONT COLOR="#000000"> nat=yes</FONT>
<FONT COLOR="#000000"> host=dynamic</FONT>
<FONT COLOR="#000000"> dtmfmode=rfc2833</FONT>
<FONT COLOR="#000000"> canreinvite=no</FONT>
<FONT COLOR="#000000"> qualify=200</FONT>
</PRE>
allow=all<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Mon, 2005-07-04 at 18:00 +0200, Sistemista WebSolvingJaa wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">with some trials configuration,and a couple of hours now i can make a</FONT>
<FONT COLOR="#000000">call from a phone to another phone. typing the code of phone A from</FONT>
<FONT COLOR="#000000">phone B, the ring-tone of phone A rings but neither phone A and phone</FONT>
<FONT COLOR="#000000">B can comunicate as voice (i hope my explaination can be understood by</FONT>
<FONT COLOR="#000000">all of you). so my extension.conf is now like this:</FONT>
<FONT COLOR="#000000">[general]</FONT>
<FONT COLOR="#000000">static=yes</FONT>
<FONT COLOR="#000000">writeprotect=yes</FONT>
<FONT COLOR="#000000">autofallthrough=yes</FONT>
<FONT COLOR="#000000">[globals]</FONT>
<FONT COLOR="#000000">CONSOLE=Console/dsp ; Console interface for demo</FONT>
<FONT COLOR="#000000">CONSOLE=Zap/1</FONT>
<FONT COLOR="#000000">CONSOLE=Phone/phone0</FONT>
<FONT COLOR="#000000">IAXINFO=guest ; IAXtel username/password</FONT>
<FONT COLOR="#000000">TRUNK=Zap/g2 ; Trunk interface</FONT>
<FONT COLOR="#000000">TRUNKMSD=1 ; MSD digits to strip</FONT>
<FONT COLOR="#000000">(usually 1 or 0)</FONT>
<FONT COLOR="#000000">[dundi-e164-local]</FONT>
<FONT COLOR="#000000">include => dundi-e164-canonical</FONT>
<FONT COLOR="#000000">include => dundi-e164-customers</FONT>
<FONT COLOR="#000000">include => dundi-e164-via-pstn</FONT>
<FONT COLOR="#000000">[dundi-e164-switch]</FONT>
<FONT COLOR="#000000">switch => DUNDi/e164</FONT>
<FONT COLOR="#000000">[dundi-e164-lookup]</FONT>
<FONT COLOR="#000000">include => dundi-e164-local</FONT>
<FONT COLOR="#000000">include => dundi-e164-switch</FONT>
<FONT COLOR="#000000">[macro-dundi-e164]</FONT>
<FONT COLOR="#000000">exten => s,1,Goto(${ARG1},1)</FONT>
<FONT COLOR="#000000">include => dundi-e164-lookup</FONT>
<FONT COLOR="#000000">[iaxtel700]</FONT>
<FONT COLOR="#000000">exten => _91700XXXXXXX,1,Dial(IAX2/<A HREF="mailto:${IAXINFO}@iaxtel.com">${IAXINFO}@iaxtel.com</A>/${EXTEN:1}@iaxtel)</FONT>
<FONT COLOR="#000000">[iaxprovider]</FONT>
<FONT COLOR="#000000">;switch => IAX2/user:[key]@myserver/mycontext</FONT>
<FONT COLOR="#000000">[trunkint]</FONT>
<FONT COLOR="#000000">exten => _9011.,1,Macro(dundi-e164,${EXTEN:4})</FONT>
<FONT COLOR="#000000">exten => _9011.,n,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})</FONT>
<FONT COLOR="#000000">[trunkld]</FONT>
<FONT COLOR="#000000">exten => _91NXXNXXXXXX,1,Macro(dundi-e164,${EXTEN:1})</FONT>
<FONT COLOR="#000000">exten => _91NXXNXXXXXX,n,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})</FONT>
<FONT COLOR="#000000">[trunklocal]</FONT>
<FONT COLOR="#000000">exten => _9NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})</FONT>
<FONT COLOR="#000000">[trunktollfree]</FONT>
<FONT COLOR="#000000">exten => _91800NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})</FONT>
<FONT COLOR="#000000">exten => _91888NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})</FONT>
<FONT COLOR="#000000">exten => _91877NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})</FONT>
<FONT COLOR="#000000">exten => _91866NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})</FONT>
<FONT COLOR="#000000">[international]</FONT>
<FONT COLOR="#000000">ignorepat => 9</FONT>
<FONT COLOR="#000000">include => longdistance</FONT>
<FONT COLOR="#000000">include => trunkint</FONT>
<FONT COLOR="#000000">[longdistance]</FONT>
<FONT COLOR="#000000">ignorepat => 9</FONT>
<FONT COLOR="#000000">include => local</FONT>
<FONT COLOR="#000000">include => trunkld</FONT>
<FONT COLOR="#000000">[local]</FONT>
<FONT COLOR="#000000">ignorepat => 9</FONT>
<FONT COLOR="#000000">include => default</FONT>
<FONT COLOR="#000000">include => parkedcalls</FONT>
<FONT COLOR="#000000">include => trunklocal</FONT>
<FONT COLOR="#000000">include => iaxtel700</FONT>
<FONT COLOR="#000000">include => trunktollfree</FONT>
<FONT COLOR="#000000">include => iaxprovider</FONT>
<FONT COLOR="#000000">[macro-stdexten];</FONT>
<FONT COLOR="#000000">exten => s,1,Dial(${ARG2},20) ; Ring</FONT>
<FONT COLOR="#000000">the interface, 20 seconds maximum</FONT>
<FONT COLOR="#000000">exten => s,2,Goto(s-${DIALSTATUS},1) ; Jump</FONT>
<FONT COLOR="#000000">based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)</FONT>
<FONT COLOR="#000000">exten => s-NOANSWER,1,Voicemail(u${ARG1}) ; If</FONT>
<FONT COLOR="#000000">unavailable, send to voicemail w/ unavail announce</FONT>
<FONT COLOR="#000000">exten => s-NOANSWER,2,Goto(default,s,1) ; If they</FONT>
<FONT COLOR="#000000">press #, return to start</FONT>
<FONT COLOR="#000000">exten => s-BUSY,1,Voicemail(b${ARG1}) ; If busy,</FONT>
<FONT COLOR="#000000">send to voicemail w/ busy announce</FONT>
<FONT COLOR="#000000">exten => s-BUSY,2,Goto(default,s,1) ; If</FONT>
<FONT COLOR="#000000">they press #, return to start</FONT>
<FONT COLOR="#000000">exten => _s-.,1,Goto(s-NOANSWER,1) ;</FONT>
<FONT COLOR="#000000">Treat anything else as no answer</FONT>
<FONT COLOR="#000000">exten => a,1,VoicemailMain(${ARG1}) ; If</FONT>
<FONT COLOR="#000000">they press *, send the user into VoicemailMain</FONT>
<FONT COLOR="#000000">[demo]</FONT>
<FONT COLOR="#000000">exten => s,1,Wait,1 ; Wait a second, just for fun</FONT>
<FONT COLOR="#000000">exten => s,n,Answer ; Answer the line</FONT>
<FONT COLOR="#000000">exten => s,n,SetVar(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds</FONT>
<FONT COLOR="#000000">exten => s,n,SetVar(TIMEOUT(response)=10) ; Set Response Timeout</FONT>
<FONT COLOR="#000000">to 10 seconds</FONT>
<FONT COLOR="#000000">exten => s,n(restart),BackGround(demo-congrats) ; Play a congratulatory message</FONT>
<FONT COLOR="#000000">exten => s,n(instruct),BackGround(demo-instruct) ; Play some instructions</FONT>
<FONT COLOR="#000000">exten => s,n,WaitExten ; Wait for an extension to be dialed.</FONT>
<FONT COLOR="#000000">exten => 2,1,BackGround(demo-moreinfo) ; Give some more information.</FONT>
<FONT COLOR="#000000">exten => 2,n,Goto(s,instruct)</FONT>
<FONT COLOR="#000000">exten => 3,1,SetVar(LANGUAGE()=fr) ; Set language to french</FONT>
<FONT COLOR="#000000">exten => 3,n,Goto(s,restart) ; Start with the congratulations</FONT>
<FONT COLOR="#000000">exten => 1000,1,Goto(default,s,1)</FONT>
<FONT COLOR="#000000">exten => 1234,1,Playback(transfer,skip) ; "Please hold while..."</FONT>
<FONT COLOR="#000000"> ; (but skip if channel is not up)</FONT>
<FONT COLOR="#000000">exten => 1234,n,Macro(stdexten,1234,${CONSOLE})</FONT>
<FONT COLOR="#000000">exten => 1235,1,Voicemail(u1234) ; Right to voicemail</FONT>
<FONT COLOR="#000000">exten => 1236,1,Dial(Console/dsp) ; Ring forever</FONT>
<FONT COLOR="#000000">exten => 1236,n,Voicemail(u1234) ; Unless busy</FONT>
<FONT COLOR="#000000">exten => #,1,Playback(demo-thanks) ; "Thanks for trying the demo"</FONT>
<FONT COLOR="#000000">exten => #,n,Hangup ; Hang them up.</FONT>
<FONT COLOR="#000000">exten => t,1,Goto(#,1) ; If they take too long, give up</FONT>
<FONT COLOR="#000000">exten => i,1,Playback(invalid) ; "That's not valid, try again"</FONT>
<FONT COLOR="#000000">exten => 500,1,Playback(demo-abouttotry); Let them know what's going on</FONT>
<FONT COLOR="#000000">exten => 500,n,Dial(IAX2/<A HREF="mailto:guest@misery.digium.com">guest@misery.digium.com</A>/s@default) ; Call</FONT>
<FONT COLOR="#000000">the Asterisk demo</FONT>
<FONT COLOR="#000000">exten => 500,n,Playback(demo-nogo) ; Couldn't connect to the demo site</FONT>
<FONT COLOR="#000000">exten => 500,n,Goto(s,6) ; Return to the start over message.</FONT>
<FONT COLOR="#000000">exten => 600,1,Playback(demo-echotest) ; Let them know what's going on</FONT>
<FONT COLOR="#000000">exten => 600,n,Echo ; Do the echo test</FONT>
<FONT COLOR="#000000">exten => 600,n,Playback(demo-echodone) ; Let them know it's over</FONT>
<FONT COLOR="#000000">exten => 600,n,Goto(s,6) ; Start over</FONT>
<FONT COLOR="#000000">exten => 8500,1,VoicemailMain</FONT>
<FONT COLOR="#000000">exten => 8500,n,Goto(s,6)</FONT>
<FONT COLOR="#000000">[default]</FONT>
<FONT COLOR="#000000">include => from-sip</FONT>
<FONT COLOR="#000000">exten => 1000,1,Dial,Zap/1|20 ; Exten 1000 dials Zap channel 1 with a</FONT>
<FONT COLOR="#000000">ring time option of 20 secs, which is the analog telephone plugged</FONT>
<FONT COLOR="#000000">into the first port of the TDM400P.</FONT>
<FONT COLOR="#000000">exten => 1000,2,Voicemail,u1000</FONT>
<FONT COLOR="#000000">exten => 1000,3,Hangup</FONT>
<FONT COLOR="#000000">exten => 1000,102,Voicemail,b1000</FONT>
<FONT COLOR="#000000">exten => 1000,103,Hangup</FONT>
<FONT COLOR="#000000">exten => 2000,1,Dial,Zap/2|20</FONT>
<FONT COLOR="#000000">exten => 2000,2,Voicemail,u2000</FONT>
<FONT COLOR="#000000">exten => 2000,3,Hangup</FONT>
<FONT COLOR="#000000">exten => 2000,102,Voicemail,b2000</FONT>
<FONT COLOR="#000000">exten => 2000,103,Hangup</FONT>
<FONT COLOR="#000000">exten => 3000,1,Dial,Zap/3|20</FONT>
<FONT COLOR="#000000">exten => 3000,2,Voicemail,u3000</FONT>
<FONT COLOR="#000000">exten => 3000,3,Hangup</FONT>
<FONT COLOR="#000000">exten => 3000,102,Voicemail,b3000</FONT>
<FONT COLOR="#000000">exten => 3000,103,Hangup</FONT>
<FONT COLOR="#000000">exten => _NXXXXXX,1,Dial(Zap/4/${EXTEN}|20,t)</FONT>
<FONT COLOR="#000000">[incoming]</FONT>
<FONT COLOR="#000000">exten => s,1,Wait(1)</FONT>
<FONT COLOR="#000000">exten => s,2,Dial(Zap/g1|20,t) ; Calls the first available channel in group 1</FONT>
<FONT COLOR="#000000">exten => s,3,Voicemail,u9000 ; Directs caller to unavailable voicemailbox 9000</FONT>
<FONT COLOR="#000000">exten => s,4,Hangup</FONT>
<FONT COLOR="#000000">exten => s,103,Voicemail,b9000 ; Directs caller to busy voicemailbox 9000</FONT>
<FONT COLOR="#000000">exten => s,104,Hangup</FONT>
<FONT COLOR="#000000">[sip-incoming]</FONT>
<FONT COLOR="#000000">exten => _.,1,Wait(1)</FONT>
<FONT COLOR="#000000">exten => _.,2,Playback(demo-thanks)</FONT>
<FONT COLOR="#000000">exten => _.,3,Hangup</FONT>
<FONT COLOR="#000000">[from-sip]</FONT>
<FONT COLOR="#000000">exten => 2010,1,Dial(SIP/2010,20)</FONT>
<FONT COLOR="#000000">exten => 2010,2,Voicemail(u2000)</FONT>
<FONT COLOR="#000000">exten => 2010,102,Voicemail(b2000)</FONT>
<FONT COLOR="#000000">exten => 2010,103,Hangup</FONT>
<FONT COLOR="#000000">exten => 2011,1,Dial(SIP/2011,20)</FONT>
<FONT COLOR="#000000">exten => 2011,2,Voicemail(u2011)</FONT>
<FONT COLOR="#000000">exten => 2011,102,Voicemail(b2011)</FONT>
<FONT COLOR="#000000">exten => 2011,103,Hangup</FONT>
<FONT COLOR="#000000">exten => 2012,1,Dial(SIP/2012,20)</FONT>
<FONT COLOR="#000000">exten => 2012,2,Voicemail(u2012)</FONT>
<FONT COLOR="#000000">exten => 2012,102,Voicemail(b2012)</FONT>
<FONT COLOR="#000000">exten => 2012,103,Hangup</FONT>
<FONT COLOR="#000000"> [local]</FONT>
<FONT COLOR="#000000"> ignorepat => 9</FONT>
<FONT COLOR="#000000"> include => default</FONT>
<FONT COLOR="#000000"> include => parkedcalls</FONT>
<FONT COLOR="#000000"> include => trunklocal</FONT>
<FONT COLOR="#000000"> include => trunktollfree</FONT>
<FONT COLOR="#000000"> include => sip ;x included sip</FONT>
<FONT COLOR="#000000"> [sip]</FONT>
<FONT COLOR="#000000"> exten => 55,1,VoicemailMain</FONT>
<FONT COLOR="#000000"> exten => 2001,1,Dial(SIP/2001,20,tr)</FONT>
<FONT COLOR="#000000"> exten => 2001,2,VoiceMail,u2001</FONT>
<FONT COLOR="#000000"> exten => 2001,102,VoiceMail,b2001</FONT>
<FONT COLOR="#000000"> exten => 2002,1,Dial(SIP/2002,20,tr)</FONT>
<FONT COLOR="#000000"> exten => 2002,2,VoiceMail,u2002</FONT>
<FONT COLOR="#000000"> exten => 2002,102,VoiceMail,b2002</FONT>
<FONT COLOR="#000000"> exten => 2003,1,Dial(SIP/2003,20,tr)</FONT>
<FONT COLOR="#000000"> exten => 2003,2,VoiceMail,u2003</FONT>
<FONT COLOR="#000000"> exten => 2003,102,VoiceMail,b2003</FONT>
<FONT COLOR="#000000"> exten => 2004,1,Dial(SIP/2004,20,tr)</FONT>
<FONT COLOR="#000000"> exten => 2004,2,VoiceMail,u2004</FONT>
<FONT COLOR="#000000"> exten => 2004,102,VoiceMail,b2004</FONT>
<FONT COLOR="#000000"> exten => 2010,1,Dial(SIP/2010,20,tr)</FONT>
<FONT COLOR="#000000"> exten => 2010,2,VoiceMail,u2010</FONT>
<FONT COLOR="#000000"> exten => 2010,102,VoiceMail,b2010</FONT>
<FONT COLOR="#000000"> exten => 2011,1,Dial(SIP/2011,20,tr)</FONT>
<FONT COLOR="#000000"> exten => 2022,1,Dial(SIP/2022,20,tr)</FONT>
<FONT COLOR="#000000"> exten => _1XXX,1,Dial(IAX/asterisk2:<A HREF="mailto:1945@192.168.1.30">1945@192.168.1.30</A>/${EXTEN}@local)</FONT>
<FONT COLOR="#000000">and the sip.conf file is like this:</FONT>
<FONT COLOR="#000000">[general]</FONT>
<FONT COLOR="#000000"> port = 5060</FONT>
<FONT COLOR="#000000"> bindaddr = 0.0.0.0</FONT>
<FONT COLOR="#000000"> context = from-sip ;x changed from default to sip</FONT>
<FONT COLOR="#000000"> [2001]</FONT>
<FONT COLOR="#000000"> type=friend</FONT>
<FONT COLOR="#000000"> username=2001</FONT>
<FONT COLOR="#000000"> secret=1945</FONT>
<FONT COLOR="#000000"> canreinvite=no</FONT>
<FONT COLOR="#000000"> host=dynamic</FONT>
<FONT COLOR="#000000"> dtmfmode=rfc2833</FONT>
<FONT COLOR="#000000"> qualify=200</FONT>
<FONT COLOR="#000000"> mailbox=2001</FONT>
<FONT COLOR="#000000"> nat=1</FONT>
<FONT COLOR="#000000"> [2002]</FONT>
<FONT COLOR="#000000"> type=friend</FONT>
<FONT COLOR="#000000"> username=2002</FONT>
<FONT COLOR="#000000"> secret=1945</FONT>
<FONT COLOR="#000000"> canreinvite=no</FONT>
<FONT COLOR="#000000"> host=dynamic</FONT>
<FONT COLOR="#000000"> dtmfmode=rfc2833</FONT>
<FONT COLOR="#000000"> qualify=200</FONT>
<FONT COLOR="#000000"> mailbox=2002</FONT>
<FONT COLOR="#000000"> nat=1</FONT>
<FONT COLOR="#000000"> [2010]</FONT>
<FONT COLOR="#000000"> type=friend</FONT>
<FONT COLOR="#000000"> username=2010</FONT>
<FONT COLOR="#000000"> secret=1945</FONT>
<FONT COLOR="#000000"> nat=yes</FONT>
<FONT COLOR="#000000"> host=dynamic</FONT>
<FONT COLOR="#000000"> dtmfmode=rfc2833</FONT>
<FONT COLOR="#000000"> canreinvite=no</FONT>
<FONT COLOR="#000000"> qualify=200</FONT>
<FONT COLOR="#000000"> [2011]</FONT>
<FONT COLOR="#000000"> type=friend</FONT>
<FONT COLOR="#000000"> username=2011</FONT>
<FONT COLOR="#000000"> secret=1945</FONT>
<FONT COLOR="#000000"> nat=yes</FONT>
<FONT COLOR="#000000"> host=dynamic</FONT>
<FONT COLOR="#000000"> dtmfmode=rfc2833</FONT>
<FONT COLOR="#000000"> canreinvite=no</FONT>
<FONT COLOR="#000000"> qualify=200</FONT>
<FONT COLOR="#000000"> [2012]</FONT>
<FONT COLOR="#000000"> type=friend</FONT>
<FONT COLOR="#000000"> username=2012</FONT>
<FONT COLOR="#000000"> secret=1945</FONT>
<FONT COLOR="#000000"> nat=yes</FONT>
<FONT COLOR="#000000"> host=dynamic</FONT>
<FONT COLOR="#000000"> dtmfmode=rfc2833</FONT>
<FONT COLOR="#000000"> canreinvite=no</FONT>
<FONT COLOR="#000000"> qualify=200</FONT>
<FONT COLOR="#000000">can somebody tell me where are the mistakes?</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>