[Resolved] Need Help...How to remove "9" from &quo

Hi,

I am receiving "“917323622100” from my Nortel Meridian. I have to truncate the first “9” inorder to get this working with my PSTN providor. Can any one suggest me on this.

below is my extension dial plan:
;Long-Distance Dialplan for Meridian
exten => _91NXXXXXXXXX,1,Set(CALLERID(num)=646712${CALLERID(num)})
exten => _91NXXXXXXXXX,2,Dial(IAX2/mpbx:secret@10.100.20.250/${EXTEN})
exten => _91NXXXXXXXXX,3,Hangup

CLI debug output.

-- Executing [917323622100@default:1] Set("SIP/10.10.68.252-0906ce08", "CALLERID(num)=6467125000") in new stack
-- Executing [917323622100@default:2] Dial("SIP/10.10.68.252-0906ce08", "IAX2/mpbx:secret@10.100.20.250/917323622100") in new stack
-- Called mpbx:secret@10.100.20.250/917323622100

[Nov 14 11:09:37] WARNING[3384]: chan_iax2.c:7823 socket_process: Call rejected by 10.100.20.250: No such context/extension
– Hungup ‘IAX2/cpbx-13394’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [917323622100@default:3] Hangup(“SIP/10.10.68.252-0906ce08”, “”) in new stack
== Spawn extension (default, 917323622100, 3) exited non-zero on ‘SIP/10.10.68.252-0906ce08’

mail-archive.com/asterisk-us … 46763.html

Hi Kapil,

thanks a lot for your quick help. you made my day…it is working great…

do you also know how to change caller-id based on inbound extensions?

i have 5000-5099 DID numbers with different NPA-NXX and 5100-5199 with different NPA-NXX. so, my default callerid mapping command is not working properly.

;LongDistance DialPlan
exten => _1NXXXXXXXXX,1,Set(CALLERID(num)=732516${CALLERID(num)})

thanks
ldp

That would set the caller ID to 732516+ the caller ID of that extension. Do you want to set the caller ID for outbound calling based on the person making the call or sending the call to a specific extension based on what number was called ?

Thanks. The issue got resolved. thanks for all your help. I used the {EXTEN:1} and that worked.