I think you need to change:<br>exten => 2012,1,Macro(dialSIP,IMSI262428511722625)<br><div id=":1na">
exten => 2013,1,Macro(dialSIP,IMSI262422146099205)<br><br>to:<br>exten => 2012,1,Macro(dialGSM,IMSI262428511722625)<br><div id=":1na">
exten => 2013,1,Macro(dialGSM,IMSI262422146099205)</div><br></div>also what does sip show peers show, as opposed to sip show registry?<br><br><br><div class="gmail_quote">On Tue, May 29, 2012 at 2:55 PM, Jacob Fenwick <span dir="ltr"><<a href="mailto:jacob.fenwick@gmail.com" target="_blank">jacob.fenwick@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to use OpenBTS with Asterisk.<br>
I have two phones that are connecting to OpenBTS correctly, but on the<br>
Asterisk side the phones can't call each other.<br>
<br>
I followed this guide:<br>
<a href="http://gnuradio.org/redmine/projects/gnuradio/wiki/OpenBTSSettingUpAsterisk" target="_blank">http://gnuradio.org/redmine/projects/gnuradio/wiki/OpenBTSSettingUpAsterisk</a><br>
I set up two phones in sip.conf and extensions.conf.<br>
<br>
In my SIP output I see this:<br>
WARNING[1689]: app_dial.c:2041 dial_exec_full: unable to create<br>
channel of type 'SIP' (cause 20 - unknown)<br>
<br>
If I type sip show registry it says there are 0 SIP registrations.<br>
Should I see both the phones registered at this point?<br>
If that's what's wrong, what am I doing wrong that's making the phones<br>
not able to register?<br>
<br>
Below is my Asterisk configuration.<br>
<br>
Jacob<br>
<br>
#/etc/asterisk/sip.conf<br>
[general]<br>
context=sip-external<br>
<br>
#...<br>
<br>
[IMSI262428511722625]<br>
callerid=2012<br>
canreinvite=no<br>
type=friend<br>
context=sip-external<br>
allow=gsm<br>
host=dynamic<br>
dtmfmode=info<br>
<br>
[IMSI262422146099205]<br>
callerid=2013<br>
canreinvite=no<br>
type=friend<br>
context=sip-external<br>
allow=gsm<br>
host=dynamic<br>
dtmfmode=info<br>
<br>
<br>
#/etc/asterisk/extensions.conf<br>
[macro-dialGSM]<br>
exten => s,1,Dial(SIP/${ARG1})<br>
exten => s,2,Goto(s-${DIALSTATUS},1)<br>
exten => s-CANCEL,1,Hangup<br>
exten => s-NOANSWER,1,Hangup<br>
exten => s-BUSY,1,Busy(30)<br>
exten => s-CONGESTION,1,Congestion(30)<br>
exten => s-CHANUNAVAIL,1,playback(ss-noservice)<br>
exten => s-CANCEL,1,Hangup<br>
<br>
[sip-external]<br>
exten => 2012,1,Macro(dialSIP,IMSI262428511722625)<br>
exten => 2013,1,Macro(dialSIP,IMSI262422146099205)<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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>