Jajah.com-clone using asterisk

IE: (this works for USA type calls)…

[outgoing]
exten => _1NXXNXXXXXX,1,Dial(SIP/provider/${EXTEN})

exten => _NXXNXXXXXX,1,Goto(outgoing,1${EXTEN},1)

exten => _NXXXXXX,1,Goto(outgoing,1555${EXTEN},1) ; replace 555 with your area code

exten => _5XXX,1,Goto(extensions,${EXTEN},1)

this will dump any four digit exten starting with 5 to another context, and will handle 7, 10, and 11 digit phone numbers through one provider. The Gotos turn a 7 or 10 digit number into an 11 digit number and dump it back into the same context.

allright…i used the following code to connect from a local x-lite-softphone (664) to another local x-lite-softphone (665):

the pbx now calls 664 but hangs up as 664 picks up the call.

here’s the /var/log/asterisk/full-output:

[code]Aug 29 17:28:57 DEBUG[20898] chan_sip.c: Outgoing Call for 664

Aug 29 17:28:57 DEBUG[20897] manager.c: Manager received command ‘GetVar’

Aug 29 17:28:57 DEBUG[2960] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on ‘6bd226fc5caf8c965204829276292bee@10.141.91.135’ Request 102: Found

Aug 29 17:29:04 DEBUG[2960] chan_sip.c: Acked pending invite 102

Aug 29 17:29:04 DEBUG[2960] chan_sip.c: Stopping retransmission on ‘6bd226fc5caf8c965204829276292bee@10.141.91.135’ of Request 102: Match Found

Aug 29 17:29:04 DEBUG[2960] chan_sip.c: build_route: Contact hop: sip:664@10.141.91.143:7898;rinstance=f0d8b816725ba959

Aug 29 17:29:04 WARNING[2960] chan_sip.c: Unsupported transport ‘UDP’ should be ‘UDP’, ‘TCP’, or ‘TLS’

Aug 29 17:29:05 DEBUG[20900] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.

Aug 29 17:29:05 DEBUG[20900] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES (‘2006-08-29 17:29:04’,’’,’’,‘665’,‘outrt-002-default_outside’, ‘SIP/664-08f182a0’,’’,‘ResetCDR’,‘w’,1,0,‘ANSWERED’,3,’’,‘1156865337.9’)

Aug 29 17:29:05 WARNING[20900] cdr.c: CDR on channel ‘SIP/664-08f182a0’ not posted

Aug 29 17:29:05 WARNING[20900] cdr.c: CDR on channel ‘SIP/664-08f182a0’ lacks end

Aug 29 17:29:10 DEBUG[20900] chan_sip.c: update_call_counter(664) - decrement call limit counter

Aug 29 17:29:10 WARNING[20900] chan_sip.c: Unsupported transport ‘UDP’ should be ‘UDP’, ‘TCP’, or ‘TLS’

Aug 29 17:29:10 DEBUG[2960] chan_sip.c: Stopping retransmission on ‘6bd226fc5caf8c965204829276292bee@10.141.91.135’ of Request 103: Match Found[/code]

What am I doing wrong? :smile:

do i need to build an own context for my application?

if i can call the 665-softphone from the 664-softphone and it works, shouldn’t there allready be a context handling this kind of calls? how can i find out which context i’m using there, so i can implement it in my application?