I changed the dial pattern to %23|XXXXXXX and dialed #1234567. I was able to trigger activity in the CLI:<div><div><br></div><div>Connected to Asterisk 1.2.1 currently running on aikphone (pid = 29352)</div><div>Verbosity is at least 22</div>
<div> -- Executing Macro("SIP/3000-ca1c", "dialout-trunk|3|3643873|") in new stack</div><div> -- Executing GotoIf("SIP/3000-ca1c", "1?3:2)") in new stack</div><div> -- Goto (macro-dialout-trunk,s,3)</div>
<div> -- Executing Macro("SIP/3000-ca1c", "user-callerid") in new stack</div><div> -- Executing DBget("SIP/3000-ca1c", "AMPUSER=DEVICE/3000/user") in new stack</div><div> -- DBget: varname=AMPUSER, family=DEVICE, key=3000/user</div>
<div> -- DBget: set variable AMPUSER to 3000</div><div> -- Executing DBget("SIP/3000-ca1c", "AMPUSERCIDNAME=AMPUSER/3000/cidname") in new stack</div><div> -- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=3000/cidname</div>
<div> -- DBget: set variable AMPUSERCIDNAME to Augusta I.T Tes</div><div> -- Executing GotoIf("SIP/3000-ca1c", "0?5") in new stack</div><div> -- Executing SetCallerID("SIP/3000-ca1c", ""Augusta I.T Tes" <3000>") in new stack</div>
<div> -- Executing NoOp("SIP/3000-ca1c", "Using CallerID "Augusta I.T Tes" <3000>") in new stack</div><div> -- Executing Macro("SIP/3000-ca1c", "record-enable|3000|OUT") in new stack</div>
<div> -- Executing GotoIf("SIP/3000-ca1c", "0 > 0?2:4") in new stack</div><div> -- Goto (macro-record-enable,s,4)</div><div> -- Executing AGI("SIP/3000-ca1c", "recordingcheck|20100507-082747|1273235267.398") in new stack</div>
<div> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck</div><div> recordingcheck|20100507-082747|1273235267.398: Outbound recording not enabled</div><div> -- AGI Script recordingcheck completed, returning 0</div>
<div> -- Executing NoOp("SIP/3000-ca1c", "No recording needed") in new stack</div><div> -- Executing Macro("SIP/3000-ca1c", "outbound-callerid|3") in new stack</div><div> -- Executing DBget("SIP/3000-ca1c", "USEROUTCID=AMPUSER/3000/outboundcid") in new stack</div>
<div> -- DBget: varname=USEROUTCID, family=AMPUSER, key=3000/outboundcid</div><div> -- DBget: set variable USEROUTCID to</div><div> -- Executing GotoIf("SIP/3000-ca1c", "1?4") in new stack</div>
<div> -- Goto (macro-outbound-callerid,s,4)</div><div> -- Executing GotoIf("SIP/3000-ca1c", "1?6") in new stack</div><div> -- Goto (macro-outbound-callerid,s,6)</div><div> -- Executing NoOp("SIP/3000-ca1c", "CallerID set to "Augusta I.T Tes" <3000>") in new stack</div>
<div> -- Executing SetGroup("SIP/3000-ca1c", "OUT_3") in new stack</div><div> -- Executing CheckGroup("SIP/3000-ca1c", "") in new stack</div><div> -- Executing SetVar("SIP/3000-ca1c", "DIAL_NUMBER=3643873") in new stack</div>
<div> -- Executing SetVar("SIP/3000-ca1c", "DIAL_TRUNK=3") in new stack</div><div> -- Executing AGI("SIP/3000-ca1c", "fixlocalprefix") in new stack</div><div> -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix</div>
<div> fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf</div><div> -- AGI Script fixlocalprefix completed, returning 0</div><div> -- Executing SetVar("SIP/3000-ca1c", "OUTNUM=3643873") in new stack</div>
<div> -- Executing Cut("SIP/3000-ca1c", "custom=OUT_3|:|1") in new stack</div><div> -- Executing GotoIf("SIP/3000-ca1c", "0?16") in new stack</div><div> -- Executing Dial("SIP/3000-ca1c", "IAX2/augusta/3643873") in new stack</div>
<div> -- Called augusta/3643873</div><div> -- Call accepted by 192.168.1.10 (format ulaw)</div><div> -- Format for call is ulaw</div><div> -- IAX2/augusta-16384 is making progress passing it to SIP/3000-ca1c</div>
<div> -- Hungup 'IAX2/augusta-16384'</div><div> == Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on 'SIP/3000-ca1c' in macro 'dialout-trunk'</div><div> == Spawn extension (from-internal, %233643873, 1) exited non-zero on 'SIP/3000-ca1c'</div>
<div> -- Executing Macro("SIP/3000-ca1c", "hangupcall") in new stack</div><div> -- Executing ResetCDR("SIP/3000-ca1c", "w") in new stack</div><div> -- Executing NoCDR("SIP/3000-ca1c", "") in new stack</div>
<div> -- Executing Wait("SIP/3000-ca1c", "5") in new stack</div><div> == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'SIP/3000-ca1c' in macro 'hangupcall'</div><div>
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/3000-ca1c'</div></div><div><br></div><div>It stripped the hash and passed the number through the IAX2 trunk. I am just getting a all "circuits are busy".</div>
<div>Thanks,</div><div>David</div><div><br></div><div> <br><br><div class="gmail_quote">On Wed, May 5, 2010 at 6:53 PM, Philipp von Klitzing <span dir="ltr"><<a href="mailto:klitzing@pool.informatik.rwth-aachen.de">klitzing@pool.informatik.rwth-aachen.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi!<br>
<div class="im"><br>
> I set: sip debug peer 3000 (my test extension) and dialed #3643873<br>
<br>
</div>Your X-Lite softphone actually calls %233643873 and not #3643873.<br>
You would need to check the SIP RFCs in order to find out if Asterisk is<br>
behaving correctly here by not decoding %23 as #.<br>
<br>
In the meanwhile you could try to add the extension %233643873 to your<br>
dialplan, or find out if you can configure the way X-Lite handles the #<br>
within the dialstring.<br>
<div class="im"><br>
> To: "#3643873"<<a href="mailto:sip%3A%25233643873@192.168.2.10">sip:%233643873@192.168.2.10</a>><br>
</div>> ...<br>
<div class="im">> User-Agent: X-Lite release 1104o stamp 56125<br>
<br>
</div><div class="im">> (telephone-event) Looking for %233643873 in from-internal (domain<br>
</div>> ...<br>
<div class="im">> SIP/2.0 404 Not Found Via: SIP/2.0/UDP<br>
<br>
</div>Philipp<br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div class="h5">_____________________________________________________________________<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>
</div></div></blockquote></div><br></div>