yes we do,<br>asterisk-dev isn't a 2nd support place.<br>This is for the * dev, like the name indicates it.<br><br><div><span class="gmail_quote">On 3/15/07, <b class="gmail_sendername">Oded Arbel</b> <<a href="mailto:oded@atelis.net">
oded@atelis.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Forwarded from the users list, as I didn't get an answer there.. I hope you don't mind.<br>
<br>
-------- Forwarded Message --------<br>
<br>
Hi list. <br>
<br>
We have a problem when dialing over IAX to another Asterisk server: we've setup an extension named 'f19dffb971b93746d73ec46d5f1d4b36c199f48c-g1' in a specific context (its large because it needs to be unique). I've read in past discussions on asterisk-dev list that the extension length is limited to 79 characters - which I though should be more then enough.
<br>
<br>
Now were doing a DUNDi lookup on that extension and dialing to it from a second Asterisk server. The dial address looks like this:<br>
IAX2/dundi-context:9Tb3JNDnAH6JiQd3ZMo9Fw==@<a href="http://192.118.54.134/f19dffb971b93746d73ec46d5f1d4b36c199f48c-g1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.118.54.134/f19dffb971b93746d73ec46d5f1d4b36c199f48c-g1
</a><br>
<br>
The problem is that on the local server, we try to read ${EXTEN} and parse it (specifically - I want to get at the 'g1' at the end. for this I use the CUT function):<br>
[mydundictx]<br>
exten => _[0-9a-fA-f_].,1,Set(lastpart=${CUT(EXTEN,,2)})<br>
exten => _[0-9a-fA-f_].,2,Set(firstpart=${CUT(EXTEN,,1)})<br>
<br>
and then we get this (in the console):<br>
<br>
-- Accepting AUTHENTICATED call from <a href="http://192.118.54.135" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.118.54.135</a>: [...]<br>
-- Executing [f19dffb971b93746d@mydundictx:2] Set("IAX2/192.118.54.135:4569-1", "lastpart=") in new stack<br>
-- Executing [f19dffb971b93746d@mydundictx:3] Set("IAX2/192.118.54.135:4569-1", "firstpart=f19dffb971b93746d") in new stack<br>
<br>
I understand that Asterisk truncates the extension in the display (in this case - to 17 characters), but I was under the impression that this is for display only. Apparently this is not the case - the as evidently at least CUT sees only the first 17 characters ?!?
<br>
<br>
Then we changed the setup to dial from server to server using SIP instead of IAX2 - using this method, the entire extension is passed correctly. Any idea whats going on here ?<br>
<br>
We're using Asterisk 1.4.0.<br>
<br>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
-- <br>
Oded Arbel<br>
Atelis<br>
<a href="mailto:oded@atelis.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">oded@atelis.net</a><br>
Tel: +972-54-7340014<br>
::..<br>
I always choose my friends for their good looks and my enemies for their good intellects. Man cannot be too careful in his choice of enemies.<br>
-- Oscar Wilde / "The Picture of Dorian Gray"<br>
<br>
</td>
</tr>
</tbody></table>
</div>
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Clod Patry