Hi<div><br></div><div>I change for first way in Asterisk 1.8:</div><div><div><br></div><div>[teste]</div><div>include=>rota00</div><div>exten=>1504,1,Set(CALLERID(name-charset)=unknown)</div><div>exten=>1504,2,Dial(DAHDI/g1/${EXTEN},60,tTwW)</div>
<div>exten=>1504,3,Hangup()</div><div><br></div></div><div>But, in debug of the span show the simple form:</div><div><br></div><div><div>1 namePresentationAllowedSimple Context Specific [0 0x00] =</div><div>1 <52 61 66 61 65 6C> - "Rafael"</div>
<div><br></div>Att,<div>Rafael Saraiva</div><br>
<br><br><div class="gmail_quote">2011/7/1 Richard Mudgett <span dir="ltr"><<a href="mailto:rmudgett@digium.com">rmudgett@digium.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
> I interconnect the Asterisk and the Siemens PBX with Pri QSIG. But i<br>
> can't show the callerid name in the way Asterisk ==> Siemens. I<br>
> realized that Asterisk send calleridname in format<br>
> "namePresentationAllowedSimple" to Siemens e Siemens send calleridname<br>
> in format "namePresentationAllowedExtended". I need change the format<br>
> of the calleridname in asterisk.<br>
><br>
><br>
> How to change?<br>
<br>
There are two ways:<br>
<br>
1) With Asterisk v1.8 change the character set of the name to CALLERID(name-charset)=unknown.<br>
The default character set of iso8859-1 uses the simple form since that is the default character set of the extended form.<br>
<br>
2) Change libpri as follows in the function rose_enc_qsig_Name() to always send the extended form:<br>
--- rose_qsig_name.c (revision 2267)<br>
+++ rose_qsig_name.c (working copy)<br>
@@ -94,22 +94,12 @@<br>
/* Do not encode anything */<br>
break;<br>
case 1: /* presentation_allowed */<br>
- if (name->char_set == 1) {<br>
- ASN1_CALL(pos, asn1_enc_string_bin(pos, end, ASN1_CLASS_CONTEXT_SPECIFIC | 0,<br>
- name->data, name->length));<br>
- } else {<br>
- ASN1_CALL(pos, rose_enc_qsig_NameSet(ctrl, pos, end,<br>
- ASN1_CLASS_CONTEXT_SPECIFIC | 1, name));<br>
- }<br>
+ ASN1_CALL(pos, rose_enc_qsig_NameSet(ctrl, pos, end,<br>
+ ASN1_CLASS_CONTEXT_SPECIFIC | 1, name));<br>
break;<br>
case 2: /* presentation_restricted */<br>
- if (name->char_set == 1) {<br>
- ASN1_CALL(pos, asn1_enc_string_bin(pos, end, ASN1_CLASS_CONTEXT_SPECIFIC | 2,<br>
- name->data, name->length));<br>
- } else {<br>
- ASN1_CALL(pos, rose_enc_qsig_NameSet(ctrl, pos, end,<br>
- ASN1_CLASS_CONTEXT_SPECIFIC | 3, name));<br>
- }<br>
+ ASN1_CALL(pos, rose_enc_qsig_NameSet(ctrl, pos, end,<br>
+ ASN1_CLASS_CONTEXT_SPECIFIC | 3, name));<br>
break;<br>
case 3: /* presentation_restricted_null */<br>
ASN1_CALL(pos, asn1_enc_null(pos, end, ASN1_CLASS_CONTEXT_SPECIFIC | 7));<br>
<br>
Richard<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></div>