<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Use the local channel<br>
<br>
Dial(Local/aaaa@contextinternal&local/bbbbbbbbb@contextexternal)<br>
<br>
In the internal context you set CALLERID(num) to the internal
extension and then dial the SIP<br>
<br>
exten => aaaa,1,Set(CALLERDI(num)=${EXTEN})<br>
same => n,Dial(SIP/${EXTEN})<br>
<br>
In the external context do almost the same but dial DAHDI<br>
<br>
exten => bbbbbbbbbb,1,Set(CALLERDI(num)=0555551234)<br>
same => n,Dial(DAHDI/g1/0123456789)<br>
<br>
Regards,<br>
<br>
Michel.<br>
<br>
Op 29-08-11 09:15, Olivier schreef:
<blockquote
cite="mid:CAPeT9jhSszovbHAC=-OjjjM0srmMc08i4qqhp_PjN0Zu5QsOZw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi,<br>
<br>
I've got the following use case where I want to simultaneously
dial 2 endpoints that both need different CallerID presentation.<br>
How can I do that, from the dialplan preferably ?<br>
<br>
For instance, let say phone A needs to both dial B, an internal
SIP phone and C, a cell phone reachable through a DAHDI span from
a an Asterisk system where :<br>
1. users can use 4-digits short numbers to reach other internal
phones.<br>
2. calls going out through the DAHDI span, must have CallerIDs
presented without any prefix.<br>
<br>
Ideally, CallerID should be presented :<br>
1- with 4-digits for internal phones<br>
2- with 10-digits for external phones<br>
so that both phones can return the call without re-dialing.<br>
<br>
<br>
Suggestions ?<br>
<br>
A is 1234 alias DID 0555551234<br>
B is 5678<br>
C is 0123456789<br>
I was thinking of using something like this:<br>
<br>
Dial(SIP/5678<option_to_present_1234_to_callee>&DAHDI/g1<option_to_present_0555551234>/0123456789)<br>
<br>
What could be <option_to_present_1234_to_callee> and
<option_to_present_0555551234><br>
<br>
Regards<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</blockquote>
</body>
</html>